diff options
author | Jan Hubicka <jh@suse.cz> | 2011-06-14 14:48:06 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-06-14 12:48:06 +0000 |
commit | ee6f1177c27e94f9872cc8a1779cfa9138ed7308 (patch) | |
tree | 23005cac831f2efc77c204e3d495cd9069c33e7c /gcc/ipa.c | |
parent | 618abf9a1a9cf867869751875ea5eac1dc6a7fea (diff) | |
download | gcc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |