OSDN Git Service

PR middle-end/44671
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 2010 11:38:57 +0000 (11:38 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jun 2010 11:38:57 +0000 (11:38 +0000)
* cgraphunit.c (cgraph_function_versioning): Remove wrong cgraph_make_decl_local
call; fix typo copying RTL data.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161428 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index 797f74d..857bb1e 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-26  Jan Hubicka  <jh@suse.cz>
+
+       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  <dj@redhat.com>
 
        * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
index 0a1622e..27faead 100644 (file)
@@ -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));