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

Re: Detect _Bool in bootstrap compiler


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


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