This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/46912] [4.6 Regression] Test failures for g++.dg/plugin/*plugin*.C on powerpc-apple-darwin9
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 3 Jan 2011 21:00:01 +0000
- Subject: [Bug testsuite/46912] [4.6 Regression] Test failures for g++.dg/plugin/*plugin*.C on powerpc-apple-darwin9
- Auto-submitted: auto-generated
- References: <bug-46912-4@http.gcc.gnu.org/bugzilla/>
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.