aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorRobert Lipe <robertlipe@usa.net>2000-04-18 19:42:30 +0000
committerRobert Lipe <robertl@gcc.gnu.org>2000-04-18 19:42:30 +0000
commitc149cc37c87cd454fec56f5032cc1e4b10feca16 (patch)
tree796b4e2bf06329dfa2420c489ee8acf507d84c7f /gcc/rtl.h
parentaa4661f82360b21f5048823019740e80ed4efbe3 (diff)
downloadgcc-c149cc37c87cd454fec56f5032cc1e4b10feca16.zip
gcc-c149cc37c87cd454fec56f5032cc1e4b10feca16.tar.gz
gcc-c149cc37c87cd454fec56f5032cc1e4b10feca16.tar.bz2
configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added.
* configure.in (ENUM_BITFIELDS_ARE_UNSIGNED): Added. Check that bitfields of the host compiler are not signed quantities. * config.in: Regenerate. * configure: Regenerate. * system.h (USE_ENUM_BITFIELDS): Added. (ENUM_BITFIELDS): Added. * rtl.h (rtx_def): Members `code', `mode', now ENUM_BITFIELD. (SHORT_ENUM_BUG): Deleted. * tree.h (tree_common): Members `code', `mode', `built_in_class', now ENUM_BITFIELD. * config/i386/xm-sco.h (ONLY_INT_FIELDS): Deleted. (CODE_FIELD_BUG): Likewise. * config/m68k/x-apollo68 (CC): Deleted SHORT_ENUM_BUG. (OLD_CC): Likewise. * config/m68k/x-ccur (X_CFLAGS): Likewise. From-SVN: r33233
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 5d86ab7..5a1221e 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -103,23 +103,12 @@ typedef union rtunion_def
typedef struct rtx_def
{
-#ifdef ONLY_INT_FIELDS
-#ifdef CODE_FIELD_BUG
- unsigned int code : 16;
-#else
- unsigned short code;
-#endif
-#else
/* The kind of expression this is. */
- enum rtx_code code : 16;
-#endif
+ ENUM_BITFIELD(rtx_code) code: 16;
/* The kind of value the expression has. */
-#ifdef ONLY_INT_FIELDS
- int mode : 8;
-#else
- enum machine_mode mode : 8;
-#endif
+ ENUM_BITFIELD(machine_mode) mode : 8;
+
/* 1 in an INSN if it can alter flow of control
within this function.
LINK_COST_ZERO in an INSN_LIST. */
@@ -189,13 +178,8 @@ typedef struct rtx_def
/* Define macros to access the `code' field of the rtx. */
-#ifdef SHORT_ENUM_BUG
-#define GET_CODE(RTX) ((enum rtx_code) ((RTX)->code))
-#define PUT_CODE(RTX, CODE) ((RTX)->code = ((short) (CODE)))
-#else
#define GET_CODE(RTX) ((RTX)->code)
#define PUT_CODE(RTX, CODE) ((RTX)->code = (CODE))
-#endif
#define GET_MODE(RTX) ((RTX)->mode)
#define PUT_MODE(RTX, MODE) ((RTX)->mode = (MODE))