tree.h (struct tree_const_decl): Inherit from tree_decl_common.
authorNathan Froyd <froydnj@codesourcery.com>
Mon, 4 Apr 2011 01:40:17 +0000 (01:40 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Mon, 4 Apr 2011 01:40:17 +0000 (01:40 +0000)
* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
* tree.c (initialize_tree_contains_struct): Adjust accordingly.

From-SVN: r171923

gcc/ChangeLog
gcc/tree.c
gcc/tree.h

index ba41000a8a7cdc5955970a6211f763f9cf671474..a0b099fd6bc3a37ffd33dffe34edfc6006b6053c 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
+       * tree.c (initialize_tree_contains_struct): Adjust accordingly.
+
 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
 
        * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
index f1ac7a604ce6fb90dc418874b0d0a27dd986c51c..ee47982baf0be0e8de221d7260317b69bb1cb153 100644 (file)
@@ -439,6 +439,7 @@ initialize_tree_contains_struct (void)
          break;
 
        case TS_DECL_WRTL:
+       case TS_CONST_DECL:
          MARK_TS_DECL_COMMON (code);
          break;
 
@@ -450,7 +451,6 @@ initialize_tree_contains_struct (void)
        case TS_PARM_DECL:
        case TS_LABEL_DECL:
        case TS_RESULT_DECL:
-       case TS_CONST_DECL:
          MARK_TS_DECL_WRTL (code);
          break;
 
@@ -488,7 +488,6 @@ initialize_tree_contains_struct (void)
   gcc_assert (tree_contains_struct[TRANSLATION_UNIT_DECL][TS_DECL_COMMON]);
   gcc_assert (tree_contains_struct[LABEL_DECL][TS_DECL_COMMON]);
   gcc_assert (tree_contains_struct[FIELD_DECL][TS_DECL_COMMON]);
-  gcc_assert (tree_contains_struct[CONST_DECL][TS_DECL_WRTL]);
   gcc_assert (tree_contains_struct[VAR_DECL][TS_DECL_WRTL]);
   gcc_assert (tree_contains_struct[PARM_DECL][TS_DECL_WRTL]);
   gcc_assert (tree_contains_struct[RESULT_DECL][TS_DECL_WRTL]);
index 053076f7f1c9b2880040590b4548c696cab33568..fcdebd9928ca191918f58798cac5d28e428b65e9 100644 (file)
@@ -2963,7 +2963,7 @@ struct GTY(()) tree_result_decl {
 };
 
 struct GTY(()) tree_const_decl {
-  struct tree_decl_with_rtl common;
+  struct tree_decl_common common;
 };
 
 /* For a PARM_DECL, records the data type used to pass the argument,