This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: MAINLINE breakage on Solaris-2.7
On Mon, Mar 05, 2001 at 09:26:05PM +0100, Gabriel Dos Reis wrote:
> "Zack Weinberg" <zackw@Stanford.EDU> writes:
>
> | Line 2963 is in the middle of a comment.
> ^^^^
> The diagnostics say line '2983' not 2963 which is
>
> bool result = true;
I misread it, sorry.
> | ... Could you please send me the
> | preprocessed function.i?
>
> Certainly (in private as it seems huge).
It seems system.h thinks your bootstrap compiler has a built in _Bool,
when it doesn't. Please try this patch:
===================================================================
Index: system.h
--- system.h 2001/03/03 03:32:55 1.88
+++ system.h 2001/03/05 20:54:44
@@ -378,14 +378,6 @@ extern void abort PARAMS ((void));
((GCC_VERSION >= 2007) || (__STDC_VERSION__ >= 199901L))
#endif
-/* 1 if we have _Bool. */
-#ifndef HAVE__BOOL
-# define HAVE__BOOL \
- ((GCC_VERSION >= 3000) || (__STDC_VERSION__ >= 199901L))
-#endif
-
-
-
/* Define a STRINGIFY macro that's right for ANSI or traditional C.
Note: if the argument passed to STRINGIFY is itself a macro, eg
#define foo bar, STRINGIFY(foo) will produce "foo", not "bar".
@@ -576,7 +568,7 @@ extern void *alloca (__SIZE_TYPE__);
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
-# if !HAVE__BOOL
+# if (GCC_VERSION < 3000) && (__STDC_VERSION__ < 199901L)
typedef char _Bool;
# endif
# define bool _Bool