lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on DECL_ARTIFICAL symbols.

* lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
	DECL_ARTIFICAL symbols.

From-SVN: r221770
This commit is contained in:
Jan Hubicka 2015-03-30 10:51:50 +02:00 committed by Jan Hubicka
parent 12daa22a2c
commit afd1e7c68a
2 changed files with 7 additions and 1 deletions

View 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

View 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 ())