This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Detect _Bool in bootstrap compiler
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Subject: Re: Detect _Bool in bootstrap compiler
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 5 Apr 2001 18:08:51 +0100 (BST)
- cc: Fergus Henderson <fjh at cs dot mu dot oz dot au>, <gcc-patches at gcc dot gnu dot org>
On Thu, 5 Apr 2001, Rainer Orth wrote:
> I'd like to leave this for someone else (or at least a different patch),
> since this is another issue. I've really no way of testing this. Besides,
> I'm not sure what the issue really is: couldn't one initialize any bool
> variable (to false only, to true?) at all, or only as a structure member?
> Does this require <stdbool.h> to be included? What about compilers with
> true and false built-in, but without <stdbool.h>?
Initializing any bool variable - the bug was simply first reported in the
structure case. AFAIK this is a GCC-only bug. It can be tested using
_Bool, or bool from <stdbool.h>.
> And how far do we go checking for broken snapshots as bootstrap compilers?
> Wouldn't it just work to recommend the latest previous release as the
> bootstrap compiler, and leave people with broken old snapshots on their
> own?
Enough people have reported bootstrap problems using compilers from the
relevant date range (2000-11-13 to 2001-01-20) that testing for it seems
worthwhile.
--
Joseph S. Myers
jsm28@cam.ac.uk