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/tree.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/tree.h')
-rw-r--r-- | gcc/tree.h | 19 |
1 files changed, 3 insertions, 16 deletions
@@ -126,12 +126,7 @@ struct tree_common { union tree_node *chain; union tree_node *type; -#ifdef ONLY_INT_FIELDS - unsigned int code : 8; -#else - enum tree_code code : 8; -#endif - + ENUM_BITFIELD(tree_code) code : 8; unsigned side_effects_flag : 1; unsigned constant_flag : 1; unsigned permanent_flag : 1; @@ -906,11 +901,7 @@ struct tree_type unsigned int uid; unsigned int precision : 9; -#ifdef ONLY_INT_FIELDS - unsigned int mode : 7; -#else - enum machine_mode mode : 7; -#endif + ENUM_BITFIELD(machine_mode) mode : 7; unsigned string_flag : 1; unsigned no_force_blk_flag : 1; @@ -1394,11 +1385,7 @@ struct tree_decl unsigned malloc_flag : 1; unsigned no_limit_stack : 1; unsigned pure_flag : 1; -#ifdef ONLY_INT_FIELDS - unsigned int built_in_class : 2; -#else - enum built_in_class built_in_class : 2; -#endif + ENUM_BITFIELD(built_in_class) built_in_class : 2; unsigned lang_flag_0 : 1; unsigned lang_flag_1 : 1; |