]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa.c (function_and_variable_visibility): Also clear WEAK flag when disolving COMDAT_...
authorJan Hubicka <hubicka@ucw.cz>
Wed, 19 Feb 2014 07:45:00 +0000 (08:45 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 19 Feb 2014 07:45:00 +0000 (07:45 +0000)
* ipa.c (function_and_variable_visibility): Also clear WEAK
flag when disolving COMDAT_GROUP.

From-SVN: r207878

gcc/ChangeLog
gcc/ipa.c

index c4ea4d375b43b52f7e76aaddb064b80e59efd8cc..ef48361396560f84a7d867621c788908fe2e54a5 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa.c (function_and_variable_visibility): Also clear WEAK
+       flag when disolving COMDAT_GROUP.
+
 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
index be75cba2dfa36a6d942f0f2ef109c397390ba0b8..b3b630643ba7df446ba63c9772f1c05e65601885 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -1027,7 +1027,10 @@ function_and_variable_visibility (bool whole_program)
                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);
            }