aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-06-26 13:38:57 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-06-26 11:38:57 +0000
commit8cf9fecaa087a4b4bb7e67a5dff03349fee09df9 (patch)
treedfcfb7afcad4018c78ee6f751c41404991ecaed5 /gcc/cgraphunit.c
parente4814b3971419e80fbe2e3bf62830434924d3b1b (diff)
downloadgcc-8cf9fecaa087a4b4bb7e67a5dff03349fee09df9.zip
gcc-8cf9fecaa087a4b4bb7e67a5dff03349fee09df9.tar.gz
gcc-8cf9fecaa087a4b4bb7e67a5dff03349fee09df9.tar.bz2
re PR middle-end/44671 (Partial inlining breaks C++)
PR middle-end/44671 * cgraphunit.c (cgraph_function_versioning): Remove wrong cgraph_make_decl_local call; fix typo copying RTL data. From-SVN: r161428
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 0a1622e..27faead 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2128,7 +2128,7 @@ cgraph_copy_node_for_versioning (struct cgraph_node *old_version,
new_version->local.local = true;
new_version->local.vtable_method = false;
new_version->global = old_version->global;
- new_version->rtl = new_version->rtl;
+ new_version->rtl = old_version->rtl;
new_version->reachable = true;
new_version->count = old_version->count;
@@ -2196,7 +2196,6 @@ cgraph_function_versioning (struct cgraph_node *old_version_node,
else
new_decl = build_function_decl_skip_args (old_decl, args_to_skip);
- cgraph_make_decl_local (new_decl);
/* Generate a new name for the new version. */
DECL_NAME (new_decl) = clone_function_name (old_decl, clone_name);
SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl));