re PR lto/53471 (ICE in pp_base_format, at pretty-print.c:510 (-flto -g))

2012-06-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/53471
	* dwarf2out.c (dwarf2out_finish): If generating LTO do not
	create new assembler names.

From-SVN: r188181
This commit is contained in:
Richard Guenther 2012-06-04 13:19:17 +00:00 committed by Richard Biener
parent 1fa0c18004
commit ad16e15256
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-06-04 Richard Guenther <rguenther@suse.de>
PR middle-end/53471
* dwarf2out.c (dwarf2out_finish): If generating LTO do not
create new assembler names.
2012-06-04 Richard Guenther <rguenther@suse.de>
* tree-data-ref.c (struct rdg_vertex_info): Remove.

View File

@ -22158,7 +22158,11 @@ dwarf2out_finish (const char *filename)
for (node = deferred_asm_name; node; node = node->next)
{
tree decl = node->created_for;
if (DECL_ASSEMBLER_NAME (decl) != DECL_NAME (decl))
/* When generating LTO bytecode we can not generate new assembler
names at this point and all important decls got theirs via
free-lang-data. */
if ((!flag_generate_lto || DECL_ASSEMBLER_NAME_SET_P (decl))
&& DECL_ASSEMBLER_NAME (decl) != DECL_NAME (decl))
{
add_linkage_attr (node->die, decl);
move_linkage_attr (node->die);