From: Roger Sayle Date: Sun, 2 Apr 2006 02:38:01 +0000 (+0000) Subject: gimplify.c (gimplify_scan_omp_clauses): Call gimple_boolify on the condition before... X-Git-Tag: releases/gcc-4.2.0~3453 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d568d1a8515e22770a62ff905cc3e42737dd7c7a;p=thirdparty%2Fgcc.git gimplify.c (gimplify_scan_omp_clauses): Call gimple_boolify on the condition before calling gimplify_expr. * gimplify.c (gimplify_scan_omp_clauses) : Call gimple_boolify on the condition before calling gimplify_expr. Co-Authored-By: Richard Henderson From-SVN: r112619 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 862d85632df3..24a065fa4b24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-04-01 Roger Sayle + Richard Henderson + + * gimplify.c (gimplify_scan_omp_clauses) : Call + gimple_boolify on the condition before calling gimplify_expr. + 2006-03-31 Bob Wilson * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 2312bc39477e..d95a18e3a35a 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);