diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-19 23:38:20 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-19 23:38:20 +0000 |
commit | 6137cc9f21b973f99a8973268be7115e3fa10826 (patch) | |
tree | 4156f0a5645b211f5f05d7ffb8bef1344cef32d4 /gcc/cgraphunit.c | |
parent | d78f98117af9c15a9f03af2bba3d9e90bb3aa1d5 (diff) | |
download | gcc-6137cc9f21b973f99a8973268be7115e3fa10826.tar.gz |
PR middle-end/42344
* cgraph.h (cgraph_make_decl_local): Declare.
* cgraph.c (cgraph_make_decl_local): New function.
(cgraph_make_node_local): Use it.
* cgraphunit.c (cgraph_function_versioning): Likewise.
* ipa.c (function_and_variable_visibility): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156914 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 37eee71231f..399912bfbd5 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2110,11 +2110,7 @@ cgraph_function_versioning (struct cgraph_node *old_version_node, that is not weak also. ??? We cannot use COMDAT linkage because there is no ABI support for this. */ - DECL_EXTERNAL (new_version_node->decl) = 0; - DECL_COMDAT_GROUP (new_version_node->decl) = NULL_TREE; - TREE_PUBLIC (new_version_node->decl) = 0; - DECL_COMDAT (new_version_node->decl) = 0; - DECL_WEAK (new_version_node->decl) = 0; + cgraph_make_decl_local (new_version_node->decl); DECL_VIRTUAL_P (new_version_node->decl) = 0; new_version_node->local.externally_visible = 0; new_version_node->local.local = 1; |