diff options
author | Robert Lipe <robertlipe@usa.net> | 2000-04-18 19:42:30 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 2000-04-18 19:42:30 +0000 |
commit | c149cc37c87cd454fec56f5032cc1e4b10feca16 (patch) | |
tree | 796b4e2bf06329dfa2420c489ee8acf507d84c7f /gcc/rtl.h | |
parent | aa4661f82360b21f5048823019740e80ed4efbe3 (diff) | |
download | gcc-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.h | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -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)) |