rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
authorRichard Henderson <rth@redhat.com>
Tue, 2 Dec 2003 10:14:40 +0000 (02:14 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 2 Dec 2003 10:14:40 +0000 (02:14 -0800)
        * 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
gcc/recog.h
gcc/rtl.h
gcc/tree.h

index 94af6cad67e8bf1635a1e88065ed5f467097fbd2..938bf4a2cbd6c9c0e2d1f4e799822e959a3dc743 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * dbxstclass.h: Rename from this ..
index b4f47430bedd7ab1fc9d81ed95b2b81e5f1efde4..749c64b4d900493a687a30d118fc62285730c91f 100644 (file)
@@ -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;
 
index f6957bcbdf62e378144206b02bbbefca3c3c61f1..800282a815eaabd0cb0bc67c06a9f8e12ff40136 100644 (file)
--- 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
index 2bad603cc548cf0da5f08b01d5b022286ee459f8..a2fdb1eef825bb11cf9217d674bf20f2eebbb62e 100644 (file)
@@ -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.  */