From 8cf9fecaa087a4b4bb7e67a5dff03349fee09df9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 26 Jun 2010 13:38:57 +0200 Subject: 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 --- gcc/ChangeLog | 6 ++++++ gcc/cgraphunit.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 797f74d..857bb1e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-06-26 Jan Hubicka + + PR middle-end/44671 + * cgraphunit.c (cgraph_function_versioning): Remove wrong cgraph_make_decl_local + call; fix typo copying RTL data. + 2010-06-25 DJ Delorie * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare. 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)); -- cgit v1.1