Re: count-one-bits: compilation failure with HP-UX cc

2008-04-13 Thread Ben Pfaff
Bruno Haible <[EMAIL PROTECTED]> writes: > 2008-04-13 Bruno Haible <[EMAIL PROTECTED]> > > * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification > expression, so as to avoid HP-UX 11 cc compiler bug. This fix looks good to me. Thank you for devising it. Please push it to t

Re: count-one-bits: compilation failure with HP-UX cc

2008-04-13 Thread Bruno Haible
James Youngman wrote: > It might be worth including a comment explaining the problem in the > source, so that the somebody else does not accidentally re-introduce > the same bug. You're right. Done: *** lib/count-one-bits.h.orig 2008-04-13 22:51:41.0 +0200 --- lib/count-one-bits.h

Re: count-one-bits: compilation failure with HP-UX cc

2008-04-13 Thread James Youngman
On Sun, Apr 13, 2008 at 6:25 PM, Bruno Haible <[EMAIL PROTECTED]> wrote: > The count-one-bits module fails to compile with HP-UX 11 "cc -Ae": [...] > Very strange compiler bug: > > $ cat foo.c > typedef struct { unsigned int x: ((1U >> 31 <= 3) * 2 - 1); } foo; > $ cc -Ae -c foo.c > cc: "f