aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-05-14 15:04:39 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-05-14 15:04:39 +0000
commita5efada73be7bab935ae04116f480584467768dc (patch)
treeff2beffdc8832d9936332aee2f2e9b6275bad992 /gcc/tree-dfa.c
parenta82960aa3f53932913e9f026cf817f48c5845f9e (diff)
downloadgcc-a5efada73be7bab935ae04116f480584467768dc.zip
gcc-a5efada73be7bab935ae04116f480584467768dc.tar.gz
gcc-a5efada73be7bab935ae04116f480584467768dc.tar.bz2
tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
2012-05-14 Richard Guenther <rguenther@suse.de> * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form. * omp-low.c (expand_omp_taskreg): Properly conditionalize call to update_ssa. (expand_omp_for): Likewise. (expand_omp_for_generic): Adjust conditional add to referenced vars. Use make_rename_temp for temporaries that should be rewritten into SSA form. (expand_omp_for_static_nochunk): Likewise. (expand_omp_atomic_pipeline): Likewise. From-SVN: r187467
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index 3b60ba1..6944fc7 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -198,10 +198,9 @@ make_rename_temp (tree type, const char *prefix)
tree t = create_tmp_reg (type, prefix);
if (gimple_referenced_vars (cfun))
- {
- add_referenced_var (t);
- mark_sym_for_renaming (t);
- }
+ add_referenced_var (t);
+ if (gimple_in_ssa_p (cfun))
+ mark_sym_for_renaming (t);
return t;
}