summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-02 02:38:01 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-02 02:38:01 +0000
commit9315094f9a250c141f7ec9845fade3c568619e1d (patch)
treea74abdd48a741446cec5c3b10f5c8e143bfa35f7
parent60945262e765d82631563e8c4f589842ab399a75 (diff)
downloadppe42-gcc-9315094f9a250c141f7ec9845fade3c568619e1d.tar.gz
ppe42-gcc-9315094f9a250c141f7ec9845fade3c568619e1d.zip
* gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
gimple_boolify on the condition before calling gimplify_expr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112619 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gimplify.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 862d85632df..24a065fa4b2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-01 Roger Sayle <roger@eyesopen.com>
+ Richard Henderson <rth@redhat.com>
+
+ * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
+ gimple_boolify on the condition before calling gimplify_expr.
+
2006-03-31 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 2312bc39477..d95a18e3a35 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);
OpenPOWER on IntegriCloud