re PR lto/63286 (FAIL: g++.dg/lto/20101014-2 cp_lto_20101014-2_0.o assemble, * after r215196)

PR lto/63286
	* tree.c (need_assembler_name_p): Do not mangle variadic types.

From-SVN: r215403
This commit is contained in:
Jan Hubicka 2014-09-19 20:54:23 +02:00 committed by Jan Hubicka
parent 5850bf669f
commit ca21928bb3
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-09-19 Jan Hubicka <hubicka@ucw.cz>
PR lto/63286
* tree.c (need_assembler_name_p): Do not mangle variadic types.
2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
* recog.c (scratch_operand): Do not simply allow all hard registers:

View File

@ -5003,6 +5003,7 @@ need_assembler_name_p (tree decl)
&& decl == TYPE_NAME (TREE_TYPE (decl))
&& !is_lang_specific (TREE_TYPE (decl))
&& AGGREGATE_TYPE_P (TREE_TYPE (decl))
&& !variably_modified_type_p (TREE_TYPE (decl), NULL_TREE)
&& !type_in_anonymous_namespace_p (TREE_TYPE (decl)))
return !DECL_ASSEMBLER_NAME_SET_P (decl);
/* Only FUNCTION_DECLs and VAR_DECLs are considered. */