aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.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/cgraphunit.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/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index b01f22b..0e7842c 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -830,9 +830,9 @@ cgraph_analyze_function (struct cgraph_node *node)
if (TREE_PUBLIC (node->decl) && node->same_body_alias)
{
DECL_EXTERNAL (node->decl) = DECL_EXTERNAL (node->thunk.alias);
- if (DECL_COMDAT (node->thunk.alias))
+ if (DECL_ONE_ONLY (node->thunk.alias))
{
- DECL_COMDAT (node->decl) = 1;
+ DECL_COMDAT (node->decl) = DECL_COMDAT (node->thunk.alias);
DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP (node->thunk.alias);
if (DECL_ONE_ONLY (node->thunk.alias) && !node->same_comdat_group)
{