This is the mail archive of the gcc-bugs@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]

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


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.


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