From: | Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at> |
---|---|
To: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | AW: AW: Could turn on -O2 in AIX |
Date: | 2000-11-10 18:18:16 |
Message-ID: | 11C1E6749A55D411A9670001FA687963368108@sdexcsrv1.f000.d0188.sd.spardat.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 sense in 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
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin O'Gorman | 2000-11-10 19:40:23 | Problems with Perl |
Previous Message | Peter Eisentraut | 2000-11-10 18:05:01 | Re: Coping with 'C' vs 'newC' function language names |