This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix make_rename_temp to work at -O0
I'd do it earlier, but right now it assumes that we are in SSA form.
That's because of make_rename_temp. Try now.
The patch that Richard Henderson approved and I have applied (with a
trivial correction* due to changes in tree_rest_of_compilation made
since when I had developed the patch), allows it to work much earlier
and even at -O0, just after the CFG is built.
Paolo
* Here is it:
@@ -501,7 +501,7 @@
make_rename_temp (tree type, const char *prefix)
{
tree t = create_tmp_var (type, prefix);
- if (vars_to_rename)
+ if (referenced_vars)
{
add_referenced_tmp_var (t);
bitmap_set_bit (vars_to_rename, var_ann (t)->uid);