gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 May 2014 17:43:40 +0000 (19:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 May 2014 17:43:40 +0000 (19:43 +0200)
commit95782571f3bcd00cca47233cc07b927c24d400ef
treeaf453d4b9541da0c90d1c0689ff569fa7c986574
parent047f1cec7fe69c13ed55fcdd005ace93397f0a95
gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.

* gimplify.c (gimplify_adjust_omp_clauses_1): Handle
GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
(gimplify_adjust_omp_clauses): Simd region is never
directly nested in combined parallel.  Instead, for linear
with copyin/copyout, if in combined for simd loop, make decl
firstprivate/lastprivate on OMP_FOR.
* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): When setting endvar, also set
fd->loop.v to the same value.
libgomp/
* testsuite/libgomp.c/simd-10.c: New test.
* testsuite/libgomp.c/simd-11.c: New test.
* testsuite/libgomp.c/simd-12.c: New test.
* testsuite/libgomp.c/simd-13.c: New test.

From-SVN: r210009
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/simd-10.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-11.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-12.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/simd-13.c [new file with mode: 0644]