aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-02-10 14:55:15 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-02-10 14:55:15 +0000
commitbdec4dc7becec7dd7b6bfe0535cd95e2f38d835f (patch)
tree0ba640ec5772b9e3e4fec307caba206e0e99c96a
parent7cae94fcba3cc400194fdf025c4b636838d2d12d (diff)
downloadgcc-bdec4dc7becec7dd7b6bfe0535cd95e2f38d835f.zip
gcc-bdec4dc7becec7dd7b6bfe0535cd95e2f38d835f.tar.gz
gcc-bdec4dc7becec7dd7b6bfe0535cd95e2f38d835f.tar.bz2
re PR middle-end/39127 (Invalid GIMPLE with OpenMP)
2009-02-10 Richard Guenther <rguenther@suse.de> PR middle-end/39127 * gimplify.c (gimple_regimplify_operands): Always look if we need to create a temporary. From-SVN: r144061
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gimplify.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d29668a7..7b385034 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2009-02-10 Richard Guenther <rguenther@suse.de>
+ PR middle-end/39127
+ * gimplify.c (gimple_regimplify_operands): Always look if
+ we need to create a temporary.
+
+2009-02-10 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/39132
* tree-loop-distribution.c (todo): New global var.
(generate_memset_zero): Trigger TODO_rebuild_alias.
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index be0c1ac..6f88ec5 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -7459,9 +7459,9 @@ gimple_regimplify_operands (gimple stmt, gimple_stmt_iterator *gsi_p)
}
lhs = gimple_get_lhs (stmt);
- /* If regimplification of the LHS changed it in a way that requires
- a simple RHS, create temporary. */
- if (orig_lhs != lhs && !is_gimple_formal_tmp_var (lhs))
+ /* If the LHS changed it in a way that requires a simple RHS,
+ create temporary. */
+ if (lhs && !is_gimple_formal_tmp_var (lhs))
{
bool need_temp = false;