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 10:34:55PM +0100, Gabriel Dos Reis wrote:
> "Zack Weinberg" <zackw@Stanford.EDU> writes:
>
> [...]
>
> | It seems system.h thinks your bootstrap compiler has a built in _Bool,
> | when it doesn't.
>
> It is gcc-2.97 from 2000-12-07.
>
> | ... Please try this patch:
>
> It is still failing on the same point :-( Do you need other information?
How very strange. The #if should succeed. Well, let's go for brute
force:
===================================================================
Index: system.h
--- system.h 2001/03/03 03:32:55 1.88
+++ system.h 2001/03/05 22:07:00
@@ -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,10 +568,7 @@ extern void *alloca (__SIZE_TYPE__);
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
-# if !HAVE__BOOL
-typedef char _Bool;
-# endif
-# define bool _Bool
+# define bool char
# define true 1
# define false 0
#endif