From: Jan Hubicka Date: Wed, 19 Feb 2014 07:45:00 +0000 (+0100) Subject: ipa.c (function_and_variable_visibility): Also clear WEAK flag when disolving COMDAT_... X-Git-Tag: releases/gcc-4.9.0~865 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fea98d8cf1513e1ea54a6de9a32ef42f6448345;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4ea4d375b43..ef4836139656 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 be75cba2dfa3..b3b630643ba7 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); }