]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-visibility.c (update_visibility_by_resolution_info): Fix assert.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 Aug 2014 17:11:57 +0000 (19:11 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Aug 2014 17:11:57 +0000 (17:11 +0000)
* ipa-visibility.c (update_visibility_by_resolution_info): Fix
assert.

From-SVN: r214174

gcc/ChangeLog
gcc/ipa-visibility.c

index 348f445f4a9e8ef82136936c77fcda4cb6a62c73..3e109710cd5fe1eb62cbf4374eeeb6ed616a944a 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-visibility.c (update_visibility_by_resolution_info): Fix
+       assert.
+
 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
 
        * coretypes.h (class rtx_debug_insn): Add forward declaration.
index d33c36bee9fd6d75a2640cac04a6a7babb5fb218..edfd471c6e9d89d0eb067c216e67c8f4982dd106 100644 (file)
@@ -398,7 +398,7 @@ update_visibility_by_resolution_info (symtab_node * node)
   if (node->same_comdat_group)
     for (symtab_node *next = node->same_comdat_group;
         next != node; next = next->same_comdat_group)
-      gcc_assert (!node->externally_visible
+      gcc_assert (!next->externally_visible
                  || define == (next->resolution == LDPR_PREVAILING_DEF_IRONLY
                                || next->resolution == LDPR_PREVAILING_DEF
                                || next->resolution == LDPR_UNDEF