lto-symtab.c (lto_symtab_merge_decls_1): Properly merge all of the chain.

2012-09-25  Richard Guenther  <rguenther@suse.de>

	* lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
	all of the chain.

From-SVN: r191699
This commit is contained in:
Richard Guenther 2012-09-25 11:33:17 +00:00 committed by Richard Biener
parent 222b68463b
commit 0237949a0f
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-09-25 Richard Guenther <rguenther@suse.de>
* lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
all of the chain.
2012-09-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53663

View file

@ -566,12 +566,12 @@ lto_symtab_merge_decls_1 (symtab_node first)
/* Merge the chain to the single prevailing decl and diagnose
mismatches. */
lto_symtab_merge_decls_2 (first, diagnosed_p);
lto_symtab_merge_decls_2 (prevailing, diagnosed_p);
if (cgraph_dump_file)
{
fprintf (cgraph_dump_file, "After resolution:\n");
for (e = first; e; e = e->symbol.next_sharing_asm_name)
for (e = prevailing; e; e = e->symbol.next_sharing_asm_name)
dump_symtab_node (cgraph_dump_file, e);
}