tree.h (struct tree_const_decl): Inherit from tree_decl_common.

* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
	* tree.c (initialize_tree_contains_struct): Adjust accordingly.

From-SVN: r171923
This commit is contained in:
Nathan Froyd 2011-04-04 01:40:17 +00:00 committed by Nathan Froyd
parent b4dcc39363
commit 2c081cafc8
3 changed files with 7 additions and 3 deletions

View 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.

View 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]);

View 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,