diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-14 12:48:06 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-14 12:48:06 +0000 |
commit | 89bf5ca9159c19489423b4429d3947158cd8f0ba (patch) | |
tree | 23005cac831f2efc77c204e3d495cd9069c33e7c /gcc/cgraph.c | |
parent | 3b368b8fd48a420c77dc6635520ad375426721e0 (diff) | |
download | gcc-89bf5ca9159c19489423b4429d3947158cd8f0ba.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index dfa5439ad96..86e72072eab 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 |