re PR ipa/69589 (ICE in initialize_node_lattices, at ipa-cp.c:971)

PR lto/69589
	* tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.

From-SVN: r234113
This commit is contained in:
Jan Hubicka 2016-03-10 17:02:55 +01:00 committed by Jan Hubicka
parent 015f20e49a
commit 2b9c477e7c
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR lto/69589
* tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
2016-03-10 Jan Hubicka <hubicka@ucw.cz>
PR lto/69589

View File

@ -5473,8 +5473,13 @@ free_lang_data_in_decl (tree decl)
|| (decl_function_context (decl) && !TREE_STATIC (decl)))
DECL_INITIAL (decl) = NULL_TREE;
}
else if (TREE_CODE (decl) == TYPE_DECL
|| TREE_CODE (decl) == FIELD_DECL)
else if (TREE_CODE (decl) == TYPE_DECL)
{
DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT;
DECL_VISIBILITY_SPECIFIED (decl) = 0;
DECL_INITIAL (decl) = NULL_TREE;
}
else if (TREE_CODE (decl) == FIELD_DECL)
DECL_INITIAL (decl) = NULL_TREE;
else if (TREE_CODE (decl) == TRANSLATION_UNIT_DECL
&& DECL_INITIAL (decl)