OSDN Git Service

* rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 10:14:40 +0000 (10:14 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 10:14:40 +0000 (10:14 +0000)
        * tree.h (TREE_SET_CODE): Likewise.
        * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74170 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/recog.h
gcc/rtl.h
gcc/tree.h

index 94af6ca..938bf4a 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 b4f4743..749c64b 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 f6957bc..800282a 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 2bad603..a2fdb1e 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.  */