From 7e7c843fc72dc9f503ca052f2366d5a10eabc45c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 2 Dec 2003 02:14:40 -0800 Subject: [PATCH] rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast. * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast. * tree.h (TREE_SET_CODE): Likewise. * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD. From-SVN: r74170 --- gcc/ChangeLog | 6 ++++++ gcc/recog.h | 2 +- gcc/rtl.h | 4 ++-- gcc/tree.h | 3 +-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94af6cad67e..938bf4a2cbd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2003-12-02 Richard Henderson + + * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast. + * tree.h (TREE_SET_CODE): Likewise. + * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD. + 2003-12-02 Ben Elliston * dbxstclass.h: Rename from this .. diff --git a/gcc/recog.h b/gcc/recog.h index b4f47430bed..749c64b4d90 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -221,7 +221,7 @@ struct insn_operand_data const char *const constraint; - const ENUM_BITFIELD(machine_mode) mode : 16; + ENUM_BITFIELD(machine_mode) const mode : 16; const char strict_low; diff --git a/gcc/rtl.h b/gcc/rtl.h index f6957bcbdf6..800282a815e 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -249,10 +249,10 @@ struct rtx_def GTY((chain_next ("RTX_NEXT (&%h)"), /* Define macros to access the `code' field of the rtx. */ #define GET_CODE(RTX) ((enum rtx_code) (RTX)->code) -#define PUT_CODE(RTX, CODE) ((RTX)->code = (ENUM_BITFIELD(rtx_code)) (CODE)) +#define PUT_CODE(RTX, CODE) ((RTX)->code = (CODE)) #define GET_MODE(RTX) ((enum machine_mode) (RTX)->mode) -#define PUT_MODE(RTX, MODE) ((RTX)->mode = (ENUM_BITFIELD(machine_mode)) (MODE)) +#define PUT_MODE(RTX, MODE) ((RTX)->mode = (MODE)) /* RTL vector. These appear inside RTX's when there is a need for a variable number of things. The principle use is inside diff --git a/gcc/tree.h b/gcc/tree.h index 2bad603cc54..a2fdb1eef82 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -270,8 +270,7 @@ struct tree_common GTY(()) /* The tree-code says what kind of node it is. Codes are defined in tree.def. */ #define TREE_CODE(NODE) ((enum tree_code) (NODE)->common.code) -#define TREE_SET_CODE(NODE, VALUE) \ -((NODE)->common.code = (ENUM_BITFIELD (tree_code)) (VALUE)) +#define TREE_SET_CODE(NODE, VALUE) ((NODE)->common.code = (VALUE)) /* When checking is enabled, errors will be generated if a tree node is accessed incorrectly. The macros abort with a fatal error. */ -- 2.30.2