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 71ad88d3b0b0508aa97d31e0800ad477240861a7..b43a6681584cf6ee47521ba7cc2754537c83903a 100644 (file)
@@ -1,3 +1,8 @@
+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
index 5752e5c50855af840bca685e8cd9fc3dc1b11da8..d9ef8f537359603f42214ae042733afcbe8e59dd 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;