This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Minor work-around for native HPPA compiler bug
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Roger Sayle <roger at eyesopen dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 31 Dec 2003 22:40:11 +0000 (UTC)
- Subject: Re: [PATCH] Minor work-around for native HPPA compiler bug
- References: <Pine.LNX.4.44.0312302112110.9360-100000@www.eyesopen.com><87brpofwnu.fsf@egil.codesourcery.com>
On Wed, 31 Dec 2003, Zack Weinberg wrote:
> * system.h: Update to match. Either include <stdbool.h> or
> simply #define bool, true, false; don't muck around with _Bool
> directly.
There's a case for doing the opposite - ignoring <stdbool.h> and just
defining bool, true, false (using _Bool if available, or else char) - to
avoid the ABI problem people have had in the past with bootstrapping with
2.95.x (bool has different sizes in stage1 (from the enum in 2.95's
<stdbool.h>) and later stages, causing problems if changes in development
and recompilation mean files built with different compilers get linked
together). At least the test could be made to reject 2.95's <stdbool.h>.
--
Joseph S. Myers
jsm@polyomino.org.uk