From e81e63313aafad29203e56c0cd81ec54837700c0 Mon Sep 17 00:00:00 2001 From: razya Date: Sun, 26 Nov 2006 10:00:18 +0000 Subject: [PATCH] 2006-11-26 Razya Ladklesky PR tree-optimization/29122 * tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME for the new version. Assign NULL to DECL_RTL of the new version. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119220 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/tree-inline.c | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39a20be..8d9eb53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-11-26 Razya Ladklesky + + PR tree-optimization/29122 + * tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME + for the new version. Assign NULL to DECL_RTL of the new version. + 2006-11-25 Uros Bizjak * reg-stack.c (get_true_reg): Fix UNSPEC_TRUNC_NOOP handling. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index ad8a8bc..4b1c709 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2791,14 +2791,10 @@ tree_function_versioning (tree old_decl, tree new_decl, varray_type tree_map, /* Generate a new name for the new version. */ if (!update_clones) - DECL_NAME (new_decl) = create_tmp_var_name (NULL); - /* Create a new SYMBOL_REF rtx for the new name. */ - if (DECL_RTL (old_decl) != NULL) { - SET_DECL_RTL (new_decl, copy_rtx (DECL_RTL (old_decl))); - XEXP (DECL_RTL (new_decl), 0) = - gen_rtx_SYMBOL_REF (GET_MODE (XEXP (DECL_RTL (old_decl), 0)), - IDENTIFIER_POINTER (DECL_NAME (new_decl))); + DECL_NAME (new_decl) = create_tmp_var_name (NULL); + SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); + SET_DECL_RTL (new_decl, NULL_RTX); } /* Prepare the data structures for the tree copy. */ -- 2.7.4