This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libbanshee also using a broken AC_HEADER_STDBOOL


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]