aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-04-02 02:38:01 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-04-02 02:38:01 +0000
commitd568d1a8515e22770a62ff905cc3e42737dd7c7a (patch)
treea74abdd48a741446cec5c3b10f5c8e143bfa35f7 /gcc/gimplify.c
parent86e689a9b2309a5ddaac184cb653bb9577584542 (diff)
downloadgcc-d568d1a8515e22770a62ff905cc3e42737dd7c7a.zip
gcc-d568d1a8515e22770a62ff905cc3e42737dd7c7a.tar.gz
gcc-d568d1a8515e22770a62ff905cc3e42737dd7c7a.tar.bz2
gimplify.c (gimplify_scan_omp_clauses): Call gimple_boolify on the condition before calling gimplify_expr.
* gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call gimple_boolify on the condition before calling gimplify_expr. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r112619
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 2312bc3..d95a18e 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -4536,8 +4536,12 @@ gimplify_scan_omp_clauses (tree *list_p, tree *pre_p, bool in_parallel)
omp_notice_variable (outer_ctx, decl, true);
break;
- case OMP_CLAUSE_SCHEDULE:
case OMP_CLAUSE_IF:
+ OMP_CLAUSE_OPERAND (c, 0)
+ = gimple_boolify (OMP_CLAUSE_OPERAND (c, 0));
+ /* Fall through. */
+
+ case OMP_CLAUSE_SCHEDULE:
case OMP_CLAUSE_NUM_THREADS:
gs = gimplify_expr (&OMP_CLAUSE_OPERAND (c, 0), pre_p, NULL,
is_gimple_val, fb_rvalue);