AW: AW: Could turn on -O2 in AIX

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: AW: Could turn on -O2 in AIX
Дата
Msg-id 11C1E6749A55D411A9670001FA687963368108@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Coping with 'C' vs 'newC' function language names
Следующее
От: "Kevin O'Gorman"
Дата:
Сообщение: Problems with Perl