From 9612ab65bd2b44870545b8f8de8221eecea96732 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 12 Mar 2001 06:31:41 +0000 Subject: 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 --- gcc/varasm.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 55c72d1..1fee247 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2201,15 +2201,11 @@ decode_addr_const (exp, value) value->offset = offset; } +enum kind { RTX_DOUBLE, RTX_INT }; struct rtx_const { -#ifdef ONLY_INT_FIELDS - unsigned int kind : 16; - unsigned int mode : 16; -#else - enum kind kind : 16; - enum machine_mode mode : 16; -#endif + ENUM_BITFIELD(kind) kind : 16; + ENUM_BITFIELD(machine_mode) mode : 16; union { union real_extract du; struct addr_const addr; @@ -3344,7 +3340,6 @@ free_varasm_status (f) f->varasm = NULL; } -enum kind { RTX_DOUBLE, RTX_INT }; /* Express an rtx for a constant integer (perhaps symbolic) as the sum of a symbol or label plus an explicit integer. -- cgit v1.1