lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on DECL_ARTIFICAL symbols.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 30 Mar 2015 08:51:50 +0000 (10:51 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 30 Mar 2015 08:51:50 +0000 (08:51 +0000)
* lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
DECL_ARTIFICAL symbols.

From-SVN: r221770

gcc/lto/ChangeLog
gcc/lto/lto-symtab.c

index 588b60361ee6fe82b536d236debe30f63314d8f6..bf2b51bba625d84fca7e68385766ac223e932422 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
+       DECL_ARTIFICAL symbols.
+
 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
 
        PR lto/65536
index c00fd87483a0d9dd6dd03fc014e273ba468e9c0f..396d3e27f2320a47f0ac6941024a3eca3594726d 100644 (file)
@@ -473,7 +473,8 @@ lto_symtab_merge_decls_2 (symtab_node *first, bool diagnosed_p)
     if (TREE_PUBLIC (e->decl))
       {
        if (!lto_symtab_merge (prevailing, e)
-           && !diagnosed_p)
+           && !diagnosed_p
+           && !DECL_ARTIFICIAL (e->decl))
          mismatches.safe_push (e->decl);
       }
   if (mismatches.is_empty ())