[Bug testsuite/46912] [4.6 Regression] Test failures for g++.dg/plugin/*plugin*.C on powerpc-apple-darwin9

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 3 21:00:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46912

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-03 20:59:41 UTC ---
(In reply to comment #5)
> On Dec 16, 2010, at 2:06 PM, iains at gcc dot gnu.org wrote:
> > gcc/system.h :
> 
> > # define bool unsigned char
> 
> This is wrong.  The solution is simple:
> 
>   #define bool _Bool
> 
> on darwin.  Arguably, this is correct for every non-broken system as well.

We can't rely on GCC or C99 support.  The correct fix is to define
bool to unsigned int for darwin then (and pay the space efficience loss
price).

Richard.



More information about the Gcc-bugs mailing list