]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-symtab.c (lto_symtab_merge_decls_1): Properly merge all of the chain.
authorRichard Guenther <rguenther@suse.de>
Tue, 25 Sep 2012 11:33:17 +0000 (11:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 25 Sep 2012 11:33:17 +0000 (11:33 +0000)
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

gcc/ChangeLog
gcc/lto-symtab.c

index 8bcade673c28b65002541dd394a3dc5d9cefc9ff..2bec49a6a1422a4e55f8e9e3498b6261cea0b277 100644 (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
index 58b77a353a7ba31c1b9521b481c2f2a1aca19ee4..ae73ad448fb0d08ca9d30bcfc163a7733822d40b 100644 (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);
     }