From bdec4dc7becec7dd7b6bfe0535cd95e2f38d835f Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 10 Feb 2009 14:55:15 +0000 Subject: [PATCH] re PR middle-end/39127 (Invalid GIMPLE with OpenMP) 2009-02-10 Richard Guenther PR middle-end/39127 * gimplify.c (gimple_regimplify_operands): Always look if we need to create a temporary. From-SVN: r144061 --- gcc/ChangeLog | 6 ++++++ gcc/gimplify.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d29668a7ff4..7b385034640 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-02-10 Richard Guenther + + PR middle-end/39127 + * gimplify.c (gimple_regimplify_operands): Always look if + we need to create a temporary. + 2009-02-10 Richard Guenther PR tree-optimization/39132 diff --git a/gcc/gimplify.c b/gcc/gimplify.c index be0c1ac00e5..6f88ec547d7 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; -- 2.30.2