From afd1e7c68a62870d3090dda4ee0aab3e32d5e0ba Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 30 Mar 2015 10:51:50 +0200 Subject: [PATCH] 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 --- gcc/lto/ChangeLog | 5 +++++ gcc/lto/lto-symtab.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 ()) -- 2.30.2