diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ffa188c69b..55b41ae582f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-18 Jan Hubicka + + * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF + comdats as extern. + 2014-08-18 Jan Hubicka * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 110d22b43c0..d33c36bee9f 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -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)