Detect _Bool in bootstrap compiler

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Thu Apr 5 09:25:00 GMT 2001

Fergus Henderson writes:

> This check is checking whether there's a built-in _Bool.
> The check will (and should) fail on systems which define _Bool in <stdbool.h>.

True, those systems won't test for HAVE__BOOL since system.h first checks
for HAVE_STDBOOL_H and looks at HAVE__BOOL only if <stdbool.h> doesn't

> But on such systems it would be reasonable to say that "_Bool is
> supported" and that "the `_Bool' type works".

Agreed.  That patch originated from the long double test, mainly by
cut-and-paste ;-)

> So I suggest s/works/is built-in/
> and s/supported/is built-in/.
> > +AC_DEFUN(gcc_AC_C__BOOL,
> > +[AC_CACHE_CHECK(for _Bool, gcc_cv_c__bool,
> Likewise here "checking for _Bool" is a little misleading.
> I suggest s/for _Bool/for built-in _Bool/.
> (Or perhaps "built in" or "builtin" rather than "built-in";
> I'm not sure of the correct spelling.)

Webster has `built-in', so I'd go for that.

Ok with these changes?


Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE

More information about the Gcc-patches mailing list