aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@stanford.edu>2001-03-12 06:31:41 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-03-12 06:31:41 +0000
commit9612ab65bd2b44870545b8f8de8221eecea96732 (patch)
tree0abc7a63bf85786353fd4e9f6c5bb46a5563c504 /gcc/system.h
parent533dfde023fd0e56674c79da3e8b6f0848cec9cd (diff)
downloadgcc-9612ab65bd2b44870545b8f8de8221eecea96732.zip
gcc-9612ab65bd2b44870545b8f8de8221eecea96732.tar.gz
gcc-9612ab65bd2b44870545b8f8de8221eecea96732.tar.bz2
configure.in: Move check for unsigned enumerated bitfields to macro in aclocal.m4.
* configure.in: Move check for unsigned enumerated bitfields to macro in aclocal.m4. Disable it for now. * configure, config.in: Regenerate. * system.h: Don't do anything with ONLY_INT_FIELDS. Use the unsigned-int form of ENUM_BITFIELD() unless being compiled by GCC. * varasm.c (struct rtx_const): Use ENUM_BITFIELD(). Move enum kind above its first use. * config/xm-interix.h, config/alpha/xm-alpha.h, config/i370/xm-linux.h, config/i386/xm-beos.h, config/i386/xm-mingw32.h, config/mips/xm-mips.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/rs6000/xm-beos.h, config/rs6000/xm-sysv4.h, Don't define ONLY_INT_FIELDS under any circumstances. * config/pa/xm-pa.h: Don't define __BSD_NET2__. * config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/sparc/xm-sysv4.h: Delete - now identical with some other xm header. * config.gcc (hppa targets): Replace xm-pahpux.h and xm-papro.h with implicit xm-pa.h. (sparc targets): Replace xm-sysv4.h with implicit or explicit xm-sparc.h. From-SVN: r40399
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 4343441..a18e34c 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -507,14 +507,6 @@ extern void abort PARAMS ((void));
/* Get libiberty declarations. */
#include "libiberty.h"
-/* Make sure that ONLY_INT_FIELDS has an integral value. */
-#ifdef ONLY_INT_FIELDS
-#undef ONLY_INT_FIELDS
-#define ONLY_INT_FIELDS 1
-#else
-#define ONLY_INT_FIELDS 0
-#endif
-
/* Provide a default for the HOST_BIT_BUCKET.
This suffices for POSIX-like hosts. */
@@ -522,12 +514,10 @@ extern void abort PARAMS ((void));
#define HOST_BIT_BUCKET "/dev/null"
#endif
-/* Enumerated bitfields are safe to use unless we've been explictly told
- otherwise or if they are signed. */
-
-#define USE_ENUM_BITFIELDS (__GNUC__ || (!ONLY_INT_FIELDS && ENUM_BITFIELDS_ARE_UNSIGNED))
+/* Be conservative and only use enum bitfields with GCC.
+ FIXME: provide a complete autoconf test for buggy enum bitfields. */
-#if USE_ENUM_BITFIELDS
+#if (GCC_VERSION > 2000)
#define ENUM_BITFIELD(TYPE) enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int