Commit 2b9c477e by Jan Hubicka Committed by Jan Hubicka

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
parent 015f20e4
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
* tree.c (need_assembler_name_p): Only record main variant type names.
2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
......
......@@ -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)
......
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