Re: NSK(OSS) compilation problem

2006-11-07 Thread Matthew Woehlke
Paul Eggert wrote: Matthew Woehlke <[EMAIL PROTECTED]> writes: Nope, no luck, '0' in both cases, and adding a printf confirms the correct values. Can you strip down intparam1.c to relatively small test case that illustrates the problem? Sorry for taking so long, I am just now looking at thi

Re: NSK(OSS) compilation problem

2006-11-07 Thread Paul Eggert
Matthew Woehlke <[EMAIL PROTECTED]> writes: > This simple test is OK on my Linux box and on NSK without -O. It does > not work /AT ALL/ (100% failure rate) on NSK with -O. OK, but the C standard does not require that it has to work, because it doesn't say what happens when you shift a negative in

Re: NSK(OSS) compilation problem

2006-11-07 Thread Matthew Woehlke
Paul Eggert wrote: Matthew Woehlke <[EMAIL PROTECTED]> writes: This simple test is OK on my Linux box and on NSK without -O. It does not work /AT ALL/ (100% failure rate) on NSK with -O. OK, but the C standard does not require that it has to work, because it doesn't say what happens when you s

Re: NSK(OSS) compilation problem

2006-11-07 Thread Paul Eggert
Matthew Woehlke <[EMAIL PROTECTED]> writes: > Eh? How is testing if ((1<<1)>>1) == 1 "too strict"? It's not. But it wasn't clear from your earlier posting whether the failure was 1LL<<1>>1 or 1LL<<63>>63. The latter is not required to yield 1 (assuming long long is 64 bits), because C doesn't d

Re: NSK(OSS) compilation problem

2006-11-07 Thread Paul Eggert
I installed the following into Autoconf to propagate the gnulib fix into Autoconf. 2006-11-07 Paul Eggert <[EMAIL PROTECTED]> * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by Matthew Woehlke. --- li