public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Silence merge warnings on artiical types
@ 2015-03-30  3:03 Jan Hubicka
  2015-03-30  8:30 ` Richard Biener
  2015-03-30 15:36 ` Ilya Verbin
  0 siblings, 2 replies; 16+ messages in thread
From: Jan Hubicka @ 2015-03-30  3:03 UTC (permalink / raw)
  To: gcc-patches, rguenther

Hi,
when compiling C++ program that define different number of virtual method
in different classes, we output warnings about their virtual tables
being of different type. THese warnings looks ugly and we are able
to diagnose the situation in more sensible way.

This patch simply silences all warnings on artificial decls.

Bootstrapped/regtested x86_64-linux OK?
Honza

	* lto-symtab.c (lto_symtab_merge_decls_2): Silence warnings on
	artificial decls.
Index: lto/lto-symtab.c
===================================================================
--- lto/lto-symtab.c	(revision 221757)
+++ lto/lto-symtab.c	(working copy)
@@ -473,7 +473,8 @@ lto_symtab_merge_decls_2 (symtab_node *f
     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 ())

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-04-03 13:36 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30  3:03 Silence merge warnings on artiical types Jan Hubicka
2015-03-30  8:30 ` Richard Biener
2015-03-30  8:48   ` Jan Hubicka
2015-03-30 15:36 ` Ilya Verbin
2015-03-30 17:06   ` Jan Hubicka
2015-03-30 17:11     ` Ilya Verbin
2015-03-30 17:16       ` Jan Hubicka
2015-03-30 17:21     ` Jakub Jelinek
2015-03-30 17:23       ` Jan Hubicka
2015-03-30 17:53         ` Jason Merrill
2015-03-31  7:51           ` Silence merge warnings on artificial types Jan Hubicka
2015-03-31 13:26             ` Jason Merrill
2015-04-02 18:23             ` Ilya Verbin
2015-04-02 18:37               ` Jan Hubicka
2015-04-02 19:06               ` Jakub Jelinek
2015-04-03 13:36                 ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).