re PR tree-optimization/29122 (ICE with -ipa-cp and -m64 (tail calls))
authorRazya Ladelsky <razya@il.ibm.com>
Sun, 26 Nov 2006 10:00:18 +0000 (10:00 +0000)
committerRazya Ladelsky <razya@gcc.gnu.org>
Sun, 26 Nov 2006 10:00:18 +0000 (10:00 +0000)
2006-11-26  Razya Ladklesky  <razya@il.ibm.com>

        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.

From-SVN: r119220

gcc/ChangeLog
gcc/tree-inline.c

index 39a20be7c7f25b332a1a0c9f2bb7f2cd1f4d28b0..8d9eb5333526899b01cb2474325310d57d97fc94 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-26  Razya Ladklesky  <razya@il.ibm.com>
+       
+       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  <ubizjak@gmail.com>
 
        * reg-stack.c (get_true_reg): Fix UNSPEC_TRUNC_NOOP handling.
index ad8a8bc6301c2b7c69326cd4d0077eaef3fd7e2e..4b1c70919f5a084c7de68755ec61a61e814b7c13 100644 (file)
@@ -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.  */