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

Reply via email to