Commit 2fac9c01 by Zack Weinberg Committed by Zack Weinberg

configure.ac: Don't invoke ACX_HEADER_STDBOOL.

gcc:
	* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
	* configure, config.in: Regenerate.
	* system.h: Unconditionally define bool as unsigned char,
	BOOL_BITFIELD as unsigned int.
	* domwalk.h: Use BOOL_BITFIELD.
libcpp:
	* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
	* configure, config.in: Regenerate.
	* system.h: Unconditionally define bool as unsigned char,
	BOOL_BITFIELD as unsigned int.
	* .cvsignore: New file.

From-SVN: r83020
parent 9ade2479
2004-06-11 Zack Weinberg <zack@codesourcery.com>
* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
* configure, config.in: Regenerate.
* system.h: Unconditionally define bool as unsigned char,
BOOL_BITFIELD as unsigned int.
* domwalk.h: Use BOOL_BITFIELD.
2004-06-12 Andreas Jaeger <aj@suse.de>
* libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
......
......@@ -405,9 +405,6 @@
/* Define to 1 if you have the `setrlimit' function. */
#undef HAVE_SETRLIMIT
/* Define if you have a working <stdbool.h> header file. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
......@@ -493,9 +490,6 @@
/* Define to 1 if `vfork' works. */
#undef HAVE_WORKING_VFORK
/* Define if the \`_Bool' type is built-in. */
#undef HAVE__BOOL
/* Define if your compiler supports the \`__int64' type. */
#undef HAVE___INT64
......
......@@ -810,7 +810,6 @@ AC_PROG_CPP_WERROR
AC_HEADER_STDC
AC_HEADER_TIME
ACX_HEADER_STDBOOL
ACX_HEADER_STRING
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
......
......@@ -38,7 +38,7 @@ struct dom_walk_data
to use the second statement walker for anything, so it's hard to
predict if we really need the ability to select their direction
independently. */
bool walk_stmts_backward : 1;
BOOL_BITFIELD walk_stmts_backward : 1;
/* Function to initialize block local data.
......
......@@ -372,13 +372,6 @@ extern int snprintf (char *, size_t, const char *, ...);
((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
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
......@@ -485,14 +478,6 @@ extern int snprintf (char *, size_t, const char *, ...);
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
/* We only use bool bitfields with gcc3. Some supposedly C99
compilers don't handle them correctly. */
#if (GCC_VERSION >= 3000)
#define BOOL_BITFIELD _Bool
#else
#define BOOL_BITFIELD unsigned int
#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
#endif
......@@ -511,29 +496,27 @@ extern int snprintf (char *, size_t, const char *, ...);
#define __builtin_expect(a, b) (a)
#endif
/* Provide some sort of boolean type. We use stdbool.h if it's
available. This must be after all inclusion of system headers,
as some of them will mess us up. */
/* Provide a fake boolean type. We make no attempt to use the
C99 _Bool, as it may not be available in the bootstrap compiler,
and even if it is, it is liable to be buggy.
This must be after all inclusion of system headers, as some of
them will mess us up. */
#undef bool
#undef true
#undef false
#undef TRUE
#undef FALSE
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
# if !HAVE__BOOL
typedef char _Bool;
# endif
# define bool _Bool
# define true 1
# define false 0
#endif
#define bool unsigned char
#define true 1
#define false 0
#define TRUE true
#define FALSE false
/* Some compilers do not allow the use of unsigned char in bitfields. */
#define BOOL_BITFIELD unsigned int
/* As the last action in this file, we poison the identifiers that
shouldn't be used. Note, luckily gcc-3.0's token-based integrated
preprocessor won't trip on poisoned identifiers that arrive from
......
autom4te.cache
2004-06-11 Zack Weinberg <zack@codesourcery.com>
* configure.ac: Don't invoke ACX_HEADER_STDBOOL.
* configure, config.in: Regenerate.
* system.h: Unconditionally define bool as unsigned char,
BOOL_BITFIELD as unsigned int.
* .cvsignore: New file.
2004-06-09 Geoffrey Keating <geoffk@apple.com>
* traditional.c (push_replacement_text): Set macro->traditional.
......
......@@ -92,9 +92,6 @@
/* Define to 1 if you have the `putc_unlocked' function. */
#undef HAVE_PUTC_UNLOCKED
/* Define if you have a working <stdbool.h> header file. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
......@@ -125,9 +122,6 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if the \`_Bool' type is built-in. */
#undef HAVE__BOOL
/* Define to the widest efficient host integer type at least as wide as the
target's size_t type. */
#undef HOST_WIDE_INT
......
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_PREREQ(2.59)
AC_INIT(cpplib, [ ], gcc-bugs@gcc.gnu.org, cpplib)
AC_CONFIG_SRCDIR(ucnid.h)
AC_CANONICAL_SYSTEM
......@@ -15,7 +15,6 @@ AC_PROG_RANLIB
# Checks for header files.
AC_HEADER_TIME
ACX_HEADER_STRING
ACX_HEADER_STDBOOL
AC_CHECK_HEADERS(iconv.h locale.h fcntl.h limits.h stddef.h \
stdlib.h strings.h string.h sys/file.h unistd.h)
......
......@@ -275,13 +275,6 @@ extern void abort (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
/* Be conservative and only use enum bitfields with GCC.
FIXME: provide a complete autoconf test for buggy enum bitfields. */
......@@ -291,14 +284,6 @@ extern void abort (void);
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
/* We only use bool bitfields with gcc3. Some supposedly C99
compilers don't handle them correctly. */
#if (GCC_VERSION >= 3000)
#define BOOL_BITFIELD _Bool
#else
#define BOOL_BITFIELD unsigned int
#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
#endif
......@@ -310,26 +295,25 @@ extern void abort (void);
#define __builtin_expect(a, b) (a)
#endif
/* Provide some sort of boolean type. We use stdbool.h if it's
available. This must be after all inclusion of system headers,
as some of them will mess us up. */
/* Provide a fake boolean type. We make no attempt to use the
C99 _Bool, as it may not be available in the bootstrap compiler,
and even if it is, it is liable to be buggy.
This must be after all inclusion of system headers, as some of
them will mess us up. */
#undef bool
#undef true
#undef false
#undef TRUE
#undef FALSE
#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
# if !HAVE__BOOL
typedef char _Bool;
# endif
# define bool _Bool
# define true 1
# define false 0
#endif
#define bool unsigned char
#define true 1
#define false 0
/* Some compilers do not allow the use of unsigned char in bitfields. */
#define BOOL_BITFIELD unsigned int
/* Poison identifiers we do not want to use. */
#if (GCC_VERSION >= 3000)
#undef calloc
#undef strdup
......@@ -359,5 +343,4 @@ typedef char _Bool;
#pragma GCC poison bcopy bzero bcmp rindex
#endif /* GCC >= 3.0 */
#endif /* ! LIBCPP_SYSTEM_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment