aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
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/varasm.c
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/varasm.c')
-rw-r--r--gcc/varasm.c11
1 files changed, 3 insertions, 8 deletions
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.