AW: AW: Could turn on -O2 in AIX - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: AW: Could turn on -O2 in AIX
Date
Msg-id 11C1E6749A55D411A9670001FA687963368108@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> > The macro AbsoluteTimeIsReal does not work somehow.
> 
> Hm.  That expands to
> 
>     (((int) time) < ((int) 0x7FFFFFFC) && \
>      ((int) time) > ((int) 0x80000001))

There is a special case in nabstime.h for AIX, which imho
got swapped. The normal case for me would be INT_MIN
and not the 0x80000001.
There is a comment that I don't understand at all given the below 
source code:

/** AIX considers 2147483648 == -2147483648 (since they have the same bit* representation) but uses a different sign
sensein a comparison to* these integer constants depending on whether the constant is signed* or not!*/
 
#if defined (_AIX)
#define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN)
#else 
#define NOSTART_ABSTIME ((AbsoluteTime) 0x80000001)             /* -2147483647 (- 2^31) */
#endif

But that is unfortunately not the problem. Looks like yet another broken compiler to me :-(

Andreas


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Coping with 'C' vs 'newC' function language names
Next
From: "Kevin O'Gorman"
Date:
Subject: Problems with Perl