diff options
author | Jan Hubicka <jh@suse.cz> | 2011-05-25 10:20:12 +0000 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2011-05-25 10:20:12 +0000 |
commit | 45fad086a1c37885373a00a28c10658f55226edb (patch) | |
tree | a77059ef99f1ab42ef0f4f368641e3c6093f55e0 /gcc/ipa.c | |
parent | 99f43f1f01180fe27e16b43eacd7d7366105023c (diff) |
2011-05-25 Jan Hubicka <jh@suse.cz>
PR middle-end/49062
* ipa.c (function_and_variable_visibility): Only add to same
comdat group list if DECL_ONE_ONLY.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@174180 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index 9228f70edb3..0ac325b5d0f 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -897,7 +897,7 @@ function_and_variable_visibility (bool whole_program) { DECL_COMDAT (node->decl) = 1; DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP (decl_node->decl); - if (!node->same_comdat_group) + if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group) { node->same_comdat_group = decl_node; if (!decl_node->same_comdat_group) |