Commit 49322b12 by Jan Hubicka Committed by Jan Hubicka

lto.c (mentions_vars_p_field_decl, [...]): DECL_FIELD_OFFSET can contain an reference to variable.

	* lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls): 
	DECL_FIELD_OFFSET can contain an reference to variable.

From-SVN: r202174
parent 5e351e96
2013-08-31 Jan Hubicka <jh@suse.cz> 2013-08-31 Jan Hubicka <jh@suse.cz>
* lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls):
DECL_FIELD_OFFSET can contain an reference to variable.
2013-08-31 Jan Hubicka <jh@suse.cz>
* lto.c (tree_with_vars): Turn into vector. * lto.c (tree_with_vars): Turn into vector.
(MAYBE_REMEMBER_WITH_VARS): Change to... (MAYBE_REMEMBER_WITH_VARS): Change to...
(CHECK_VAR): ... this one. (CHECK_VAR): ... this one.
......
...@@ -1389,7 +1389,7 @@ mentions_vars_p_field_decl (tree t) ...@@ -1389,7 +1389,7 @@ mentions_vars_p_field_decl (tree t)
{ {
if (mentions_vars_p_decl_common (t)) if (mentions_vars_p_decl_common (t))
return true; return true;
CHECK_NO_VAR (DECL_FIELD_OFFSET (t)); CHECK_VAR (DECL_FIELD_OFFSET (t));
CHECK_NO_VAR (DECL_BIT_FIELD_TYPE (t)); CHECK_NO_VAR (DECL_BIT_FIELD_TYPE (t));
CHECK_NO_VAR (DECL_QUALIFIER (t)); CHECK_NO_VAR (DECL_QUALIFIER (t));
CHECK_NO_VAR (DECL_FIELD_BIT_OFFSET (t)); CHECK_NO_VAR (DECL_FIELD_BIT_OFFSET (t));
...@@ -3207,7 +3207,7 @@ lto_fixup_prevailing_decls (tree t) ...@@ -3207,7 +3207,7 @@ lto_fixup_prevailing_decls (tree t)
LTO_SET_PREVAIL (DECL_FUNCTION_PERSONALITY (t)); LTO_SET_PREVAIL (DECL_FUNCTION_PERSONALITY (t));
if (CODE_CONTAINS_STRUCT (code, TS_FIELD_DECL)) if (CODE_CONTAINS_STRUCT (code, TS_FIELD_DECL))
{ {
LTO_NO_PREVAIL (DECL_FIELD_OFFSET (t)); LTO_SET_PREVAIL (DECL_FIELD_OFFSET (t));
LTO_NO_PREVAIL (DECL_BIT_FIELD_TYPE (t)); LTO_NO_PREVAIL (DECL_BIT_FIELD_TYPE (t));
LTO_NO_PREVAIL (DECL_QUALIFIER (t)); LTO_NO_PREVAIL (DECL_QUALIFIER (t));
LTO_NO_PREVAIL (DECL_FIELD_BIT_OFFSET (t)); LTO_NO_PREVAIL (DECL_FIELD_BIT_OFFSET (t));
......
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