Commit 4c0d3f77 by Jan Hubicka Committed by Jan Hubicka

re PR lto/89272 (r268728 caused FAIL: g++.dg/lto/pr65316 cp_lto_pr65316_0.o assemble)


	PR lto/89272
	* tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
	polymorphic types.

From-SVN: r268742
parent c5ca5ad0
2019-02-09 Jan Hubicka <hubicka@ucw.cz>
PR lto/89272
* tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
polymorphic types.
2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
* config/nds32/nds32.md (trap): New pattern.
......
......@@ -5153,7 +5153,10 @@ fld_simplified_type_name (tree type)
TYPE_DECL if the type doesn't have linkage.
this must match fld_ */
if (type != TYPE_MAIN_VARIANT (type)
|| !DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (type)))
|| (!DECL_ASSEMBLER_NAME_SET_P (TYPE_NAME (type))
&& (TREE_CODE (type) != RECORD_TYPE
|| !TYPE_BINFO (type)
|| !BINFO_VTABLE (TYPE_BINFO (type)))))
return DECL_NAME (TYPE_NAME (type));
return TYPE_NAME (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