public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Cgraph alias reorg 16/14 (fix latent bug in ipa.c)
@ 2011-06-11 14:36 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2011-06-11 14:36 UTC (permalink / raw)
  To: gcc-patches

Hi,
there is typo in cgraph_comdat_can_be_unshared_p that causes us to sometimes diverge in visibility
of the single comdat group that leads to undefined symbols in Mozlla.
Fixed thus.

Bootstrapped/regtested x86_64-linux, comitted.

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 174952)
+++ ChangeLog	(working copy)
@@ -1,5 +1,9 @@
 2011-06-11  Jan Hubicka  <jh@suse.cz>
 
+	* ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
+
+2011-06-11  Jan Hubicka  <jh@suse.cz>
+
 	* lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
 	(lto_symtab_resolve_can_prevail_p): Likewise.
 	(lto_symtab_merge_cgraph_nodes): Update merging of aliases.
Index: ipa.c
===================================================================
--- ipa.c	(revision 174952)
+++ ipa.c	(working copy)
@@ -571,7 +571,7 @@ cgraph_comdat_can_be_unshared_p (struct 
          address taken.  */
       for (next = node->same_comdat_group;
 	   next != node; next = next->same_comdat_group)
-	if (cgraph_address_taken_from_non_vtable_p (node)
+	if (cgraph_address_taken_from_non_vtable_p (next)
 	    && !DECL_VIRTUAL_P (next->decl))
 	  return false;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-11 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-11 14:36 Cgraph alias reorg 16/14 (fix latent bug in ipa.c) Jan Hubicka

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).