Strange CPP failures

Jason R Thorpe
Wed Jul 17 01:26:00 GMT 2002

On Tue, Jul 16, 2002 at 10:11:24PM +0100, Neil Booth wrote:

 > <scratches head, examines assembler>.  This is actually a bug
 > in our bool typedef I think (which would explain a lot of the
 > random errors, and why recompiling with later compilers, which
 > contain a correct _Bool, fixes them).


 > Joseph - what to do about this?  I don't think adding "!= 0"
 > is a good fix - the typedef to char is fundamentally broken.
 > I don't see how a typedef to anything can really work in these
 > cases.

Not depending on C99 semantics is imporant, I think -- if you're making
cross compilers, you can't always control the compiler on the host.

Thanks A MILLION for looking into this, Neil!

        -- Jason R. Thorpe <>

More information about the Gcc-bugs mailing list