Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2001-01-22 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom, can you remind me where we left this? It's done ... regards, tom lane

Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2001-01-22 Thread Bruce Momjian
Tom, can you remind me where we left this? > Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: > >> But that is unfortunately not the problem. Looks like yet > >> another broken compiler to me :-( > > > Ok, the comparison ((int) time) > ((int) 0x8001) is the problem. > > Reading the comme

Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-20 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > Is the original issue support for 0x10... as the smallest integer, as > opposed to -MAX_INT? As long as we continue to map the "reserved values" > to the upper and lower range of allowed values so they are unlikely to > appear under normal circumstance

Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-20 Thread Thomas Lockhart
> >> My solution would be to use INT_MIN for all ports, which has the advantage > >> that the above problematic comparison can be converted to !=, > >> since no integer will be smaller than INT_MIN. > > I agree. When I was looking at this code this morning, I was wondering > > what INT_MIN was su

Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-17 Thread Tom Lane
>> My solution would be to use INT_MIN for all ports, which has the advantage >> that the above problematic comparison can be converted to !=, >> since no integer will be smaller than INT_MIN. > I agree. When I was looking at this code this morning, I was wondering > what INT_MIN was supposed t

Re: AW: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-16 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: >> I agree. When I was looking at this code this morning, I was wondering >> what INT_MIN was supposed to represent anyway, if NOSTART_ABSTIME is >> INT_MIN + 1. I think someone messed this up between 4.2 and Postgres95. > Has there been any co

AW: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-16 Thread Zeugswetter Andreas SB
> > My solution would be to use INT_MIN for all ports, which has the advantage > > that the above problematic comparison can be converted to !=, > > since no integer will be smaller than INT_MIN. > > I agree. When I was looking at this code this morning, I was wondering > what INT_MIN was supp

Re: AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-10 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: >> But that is unfortunately not the problem. Looks like yet >> another broken compiler to me :-( > Ok, the comparison ((int) time) > ((int) 0x8001) is the problem. > Reading the comment again and again, I have come to the conclusion, > that

AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-10 Thread Zeugswetter Andreas SB
> 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 0x8001. > There is a comment that I don't understand at all given the below > source code: > > /* > * AIX considers 2147483648 == -2147483648 (since they have >

AW: AW: [HACKERS] Could turn on -O2 in AIX

2000-11-10 Thread Zeugswetter Andreas SB
> > The macro AbsoluteTimeIsReal does not work somehow. > > Hm. That expands to > > (((int) time) < ((int) 0x7FFC) && \ >((int) time) > ((int) 0x8001)) 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