This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix make_rename_temp to work at -O0
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Jul 2004 13:01:44 +0200
- Subject: [PATCH] Fix make_rename_temp to work at -O0
This is needed so that tree-complex (and the analogous vector lowering
pass that I am going to submit soon) can work at -O0 too, when SSA is
not available.
Paolo
2004-07-13 Paolo Bonzini <bonzini@gnu.org>
* tree-dfa.c (make_rename_temp): Work even if not
in SSA form.
Index: gcc/tree-dfa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-dfa.c,v
retrieving revision 2.11
diff -u -r2.11 tree-dfa.c
--- gcc/tree-dfa.c 18 Jun 2004 14:05:19 -0000 2.11
+++ gcc/tree-dfa.c 21 Jun 2004 14:31:16 -0000
@@ -492,8 +492,11 @@
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;
}