* gimplify.c (gimplify_expr_in_ctx): Add OMP_CTX_P argument.
commit2db0ef8a09875b0de2556dacdb1b8a2288347b96
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2005 08:05:07 +0000 (15 08:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2005 08:05:07 +0000 (15 08:05 +0000)
tree4e63b68a7c75f137a78f122232290a798d1dc083
parentacb0e03629d46589d528fd0e04c35e1b4021ec1d
* gimplify.c (gimplify_expr_in_ctx): Add OMP_CTX_P argument.
Temporarily switch to OMP_CTX_P omp context.
(gimplify_scan_omp_clauses) <case OMP_CLAUSE_SCHEDULE>: In combined
parallel loop, gimplify schedule chunk expression in outer context.
(gimplify_omp_for): For combined parallel loop, gimplify INIT, COND
and INCR expressions in parent omp context.

* gcc.dg/gomp/for-18.c: New test.
* gcc.dg/gomp/for-19.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gomp-20050608-branch@106943 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.gomp
gcc/gimplify.c
gcc/testsuite/ChangeLog.gomp
gcc/testsuite/gcc.dg/gomp/for-18.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/for-19.c [new file with mode: 0644]