aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.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/cgraph.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/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index dfa5439..86e7207 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2487,7 +2487,7 @@ cgraph_make_decl_local (tree decl)
DECL_COMMON (decl) = 0;
else gcc_assert (TREE_CODE (decl) == FUNCTION_DECL);
- if (DECL_COMDAT (decl))
+ if (DECL_ONE_ONLY (decl) || DECL_COMDAT (decl))
{
/* It is possible that we are linking against library defining same COMDAT
function. To avoid conflict we need to rename our local name of the