Commit 015f20e4 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 (need_assembler_name_p): Only record main variant type names.

From-SVN: r234112
parent d49b0aa0
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>
PR target/70113.
......
......@@ -5329,6 +5329,7 @@ need_assembler_name_p (tree decl)
&& TREE_CODE (decl) == TYPE_DECL
&& DECL_NAME (decl)
&& decl == TYPE_NAME (TREE_TYPE (decl))
&& TYPE_MAIN_VARIANT (TREE_TYPE (decl)) == TREE_TYPE (decl)
&& !TYPE_ARTIFICIAL (TREE_TYPE (decl))
&& (type_with_linkage_p (TREE_TYPE (decl))
|| TREE_CODE (TREE_TYPE (decl)) == INTEGER_TYPE)
......
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