]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF comdats...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 18 Aug 2014 19:21:58 +0000 (21:21 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 18 Aug 2014 19:21:58 +0000 (19:21 +0000)
* ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
comdats as extern.

From-SVN: r214115

gcc/ChangeLog
gcc/ipa-visibility.c

index 9ffa188c69bc4fb438a869ea3110cfd9f42a5204..55b41ae582feb8497fb00d4e57d32ddadc9e5019 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
+       comdats as extern.
+
 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
 
        * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
index 110d22b43c0bd5cb3257c7ffade9d2223b688d56..d33c36bee9fd6d75a2640cac04a6a7babb5fb218 100644 (file)
@@ -391,6 +391,7 @@ update_visibility_by_resolution_info (symtab_node * node)
 
   define = (node->resolution == LDPR_PREVAILING_DEF_IRONLY
            || node->resolution == LDPR_PREVAILING_DEF
+           || node->resolution == LDPR_UNDEF
            || node->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP);
 
   /* The linker decisions ought to agree in the whole group.  */
@@ -400,6 +401,7 @@ update_visibility_by_resolution_info (symtab_node * node)
       gcc_assert (!node->externally_visible
                  || define == (next->resolution == LDPR_PREVAILING_DEF_IRONLY
                                || next->resolution == LDPR_PREVAILING_DEF
+                               || next->resolution == LDPR_UNDEF
                                || next->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP));
 
   if (node->same_comdat_group)