This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange CPP failures
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).
Yow.
> 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 <thorpej@wasabisystems.com>