ipa-visibility.c (localize_node): Also do not localize LDPR_PREVAILING_DEF_IRONLY_EXP.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 9 Feb 2019 21:54:28 +0000 (22:54 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 9 Feb 2019 21:54:28 +0000 (21:54 +0000)
* ipa-visibility.c (localize_node): Also do not localize
LDPR_PREVAILING_DEF_IRONLY_EXP.

From-SVN: r268732

gcc/ChangeLog
gcc/ipa-visibility.c

index 71ad88d..b43a668 100644 (file)
@@ -1,5 +1,10 @@
 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
 
+       * ipa-visibility.c (localize_node): Also do not localize
+       LDPR_PREVAILING_DEF_IRONLY_EXP.
+
+2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
+
        PR lto/87957
        * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
        instead of type_with_linkage.
index 5752e5c..d9ef8f5 100644 (file)
@@ -539,7 +539,8 @@ localize_node (bool whole_program, symtab_node *node)
      symbols.  In this case we can privatize all hidden symbol but we need
      to keep non-hidden exported.  */
   if (node->same_comdat_group
-      && node->resolution == LDPR_PREVAILING_DEF_IRONLY)
+      && (node->resolution == LDPR_PREVAILING_DEF_IRONLY
+         || node->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP))
     {
       symtab_node *next;
       for (next = node->same_comdat_group;