ipa.c (function_and_variable_visibility): Also clear WEAK flag when disolving COMDAT_GROUP.

* ipa.c (function_and_variable_visibility): Also clear WEAK
	flag when disolving COMDAT_GROUP.

From-SVN: r207878
This commit is contained in:
Jan Hubicka 2014-02-19 08:45:00 +01:00 committed by Jan Hubicka
parent 0a2550e705
commit 7fea98d8cf
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-02-18 Jan Hubicka <hubicka@ucw.cz>
* ipa.c (function_and_variable_visibility): Also clear WEAK
flag when disolving COMDAT_GROUP.
2014-02-18 Jan Hubicka <hubicka@ucw.cz>
* ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.

View File

@ -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);
}