This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libbanshee also using a broken AC_HEADER_STDBOOL
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Paolo Bonzini <paolo dot bonzini at polimi dot it>
- Cc: kcook at gcc dot gnu dot org, zippel at linux-m68k dot org, dberlin at dberlin dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Jun 2004 09:31:10 -0700
- Subject: Re: libbanshee also using a broken AC_HEADER_STDBOOL
- References: <20040601132121.34942.qmail@web41502.mail.yahoo.com><40BC86F1.3070807@polimi.it>
My current feeling on this issue is that we should stop using _Bool
entirely. There are too many buggy bootstrap compilers out there.
Worse, by using it we run the risk of code being written that relies
on its semantics, which may then subtly fail down the road when
compiled with a compiler where we have to fall back to char.
Better, I think, to make libiberty.h unconditionally
#define bool unsigned char
#define true 1
#define false 0
and forget about _Bool. I'm off to the summit but will work up a
patch for this when I get back, if no one beats me to it.
zw