diff mbox

Fix COMDAT_GROUP dissolving in ipa.c

Message ID 20140219074602.GB4615@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Feb. 19, 2014, 7:46 a.m. UTC
Hi,
this is a problem I noticed in libreoffice.  When disolving COMDAT group,
we should turn WEAKs into normal symbols.

Bootstrapped/regtested x86_64-linux, comited.


	* ipa.c (function_and_variable_visibility): Also clear WEAK
	flag when disolving COMDAT_GROUP.
diff mbox

Patch

Index: ipa.c
===================================================================
--- ipa.c	(revision 207870)
+++ ipa.c	(working copy)
@@ -1027,7 +1027,10 @@  function_and_variable_visibility (bool w
 	        for (next = node->same_comdat_group;
 		     next != node;
 		     next = next->same_comdat_group)
+		{
 		  DECL_COMDAT_GROUP (next->decl) = NULL;
+		  DECL_WEAK (next->decl) = false;
+		}
 	      DECL_COMDAT_GROUP (node->decl) = NULL;
 	      symtab_dissolve_same_comdat_group_list (node);
 	    }