diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4ea4d375b4..ef483613965 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-02-18 Jan Hubicka + + * ipa.c (function_and_variable_visibility): Also clear WEAK + flag when disolving COMDAT_GROUP. + 2014-02-18 Jan Hubicka * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment. diff --git a/gcc/ipa.c b/gcc/ipa.c index be75cba2dfa..b3b630643ba 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -1027,7 +1027,10 @@ function_and_variable_visibility (bool whole_program) for (next = node->same_comdat_group; next != node; next = next->same_comdat_group) + { DECL_COMDAT_GROUP (next->decl) = NULL; + DECL_WEAK (next->decl) = false; + } DECL_COMDAT_GROUP (node->decl) = NULL; symtab_dissolve_same_comdat_group_list (node); }