Commit 7e7c843f by Richard Henderson Committed by Richard Henderson

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
parent df2b750f
2003-12-02 Richard Henderson <rth@redhat.com>
* 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 <bje@wasabisystems.com> 2003-12-02 Ben Elliston <bje@wasabisystems.com>
* dbxstclass.h: Rename from this .. * dbxstclass.h: Rename from this ..
......
...@@ -221,7 +221,7 @@ struct insn_operand_data ...@@ -221,7 +221,7 @@ struct insn_operand_data
const char *const constraint; const char *const constraint;
const ENUM_BITFIELD(machine_mode) mode : 16; ENUM_BITFIELD(machine_mode) const mode : 16;
const char strict_low; const char strict_low;
......
...@@ -249,10 +249,10 @@ struct rtx_def GTY((chain_next ("RTX_NEXT (&%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 macros to access the `code' field of the rtx. */
#define GET_CODE(RTX) ((enum rtx_code) (RTX)->code) #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 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 /* RTL vector. These appear inside RTX's when there is a need
for a variable number of things. The principle use is inside for a variable number of things. The principle use is inside
......
...@@ -270,8 +270,7 @@ struct tree_common GTY(()) ...@@ -270,8 +270,7 @@ struct tree_common GTY(())
/* The tree-code says what kind of node it is. /* The tree-code says what kind of node it is.
Codes are defined in tree.def. */ Codes are defined in tree.def. */
#define TREE_CODE(NODE) ((enum tree_code) (NODE)->common.code) #define TREE_CODE(NODE) ((enum tree_code) (NODE)->common.code)
#define TREE_SET_CODE(NODE, VALUE) \ #define TREE_SET_CODE(NODE, VALUE) ((NODE)->common.code = (VALUE))
((NODE)->common.code = (ENUM_BITFIELD (tree_code)) (VALUE))
/* When checking is enabled, errors will be generated if a tree node /* When checking is enabled, errors will be generated if a tree node
is accessed incorrectly. The macros abort with a fatal error. */ is accessed incorrectly. The macros abort with a fatal error. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment