aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-06-14 14:48:06 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-06-14 12:48:06 +0000
commitee6f1177c27e94f9872cc8a1779cfa9138ed7308 (patch)
tree23005cac831f2efc77c204e3d495cd9069c33e7c /gcc/ipa.c
parent618abf9a1a9cf867869751875ea5eac1dc6a7fea (diff)
downloadgcc-ee6f1177c27e94f9872cc8a1779cfa9138ed7308.zip
gcc-ee6f1177c27e94f9872cc8a1779cfa9138ed7308.tar.gz
gcc-ee6f1177c27e94f9872cc8a1779cfa9138ed7308.tar.bz2
cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY similarly to DECL_COMDAT.
* cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY similarly to DECL_COMDAT. * cgraphunit.c (cgraph_analyze_function): Likewise. * ipa.c (function_and_variable_visibility): Likewise. From-SVN: r175015
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r--gcc/ipa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c
index 07a90b5..0edb344 100644
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -904,9 +904,9 @@ function_and_variable_visibility (bool whole_program)
We also need to arrange the thunk into the same comdat group as
the function it reffers to. */
- if (DECL_COMDAT (decl_node->decl))
+ if (DECL_ONE_ONLY (decl_node->decl))
{
- DECL_COMDAT (node->decl) = 1;
+ DECL_COMDAT (node->decl) = DECL_COMDAT (decl_node->decl);
DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP (decl_node->decl);
if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group)
{