aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2004-07-14 07:32:22 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2004-07-14 07:32:22 +0000
commiteda9caf6785a977220d442b0c21ad691d49eb717 (patch)
tree2c77c6febfa3bdca93f27bb6a94b7fff24f18e17
parentad76cef84c675f27d4e04284c1cf8c2b659d82ea (diff)
downloadgcc-eda9caf6785a977220d442b0c21ad691d49eb717.zip
gcc-eda9caf6785a977220d442b0c21ad691d49eb717.tar.gz
gcc-eda9caf6785a977220d442b0c21ad691d49eb717.tar.bz2
tree-dfa.c (make_rename_temp): Work just like create_tmp_var when called outside SSA form.
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-dfa.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1d34c89..fb1b886 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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,
protect_from_queue, queued_subexp_p, mark_queue,
emit_insns_enqueued_after_mark, emit_queue,
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index e559ecb..64cef07 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -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;
}