From: Jan Hubicka Date: Mon, 30 Mar 2015 08:51:50 +0000 (+0200) Subject: lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on DECL_ARTIFICAL symbols. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afd1e7c68a62870d3090dda4ee0aab3e32d5e0ba;p=gcc.git 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 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 588b60361ee..bf2b51bba62 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2015-03-26 Jan Hubicka + + * lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on + DECL_ARTIFICAL symbols. + 2015-03-26 Jan Hubicka PR lto/65536 diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c index c00fd87483a..396d3e27f23 100644 --- a/gcc/lto/lto-symtab.c +++ b/gcc/lto/lto-symtab.c @@ -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 ())