tree-dfa.c (make_rename_temp): Work just like create_tmp_var when called outside...
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 14 Jul 2004 07:32:22 +0000 (07:32 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Wed, 14 Jul 2004 07:32:22 +0000 (07:32 +0000)
2004-07-14  Paolo Bonzini  <bonzini@gnu.org>

* tree-dfa.c (make_rename_temp): Work just like
create_tmp_var when called outside SSA form.

From-SVN: r84676

gcc/ChangeLog
gcc/tree-dfa.c

index 1d34c8919bd1979dae346e7ce70ade80fa86d23e..fb1b88628fa8cb9c295feccd57476eeeab06d98a 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
+
+       * tree-dfa.c (make_rename_temp): Work just like
+       create_tmp_var if called while outside SSA form.
+
 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
 
        * expr.c (enqueue_insn, finish_expr_for_function,
index e559ecb2ed44aa148ad6d5a317a47d844f00d387..64cef07bafead92daa23f9a5ffe30cd6e2dee6a1 100644 (file)
@@ -501,8 +501,11 @@ tree
 make_rename_temp (tree type, const char *prefix)
 {
   tree t = create_tmp_var (type, prefix);
-  add_referenced_tmp_var (t);
-  bitmap_set_bit (vars_to_rename, var_ann (t)->uid);
+  if (vars_to_rename)
+    {
+      add_referenced_tmp_var (t);
+      bitmap_set_bit (vars_to_rename, var_ann (t)->uid);
+    }
   return t;
 }