omp-expand.c (expand_omp_for_static_nochunk): Don't emit GOMP_loop_start at the start...
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Jul 2019 21:40:56 +0000 (23:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Jul 2019 21:40:56 +0000 (23:40 +0200)
commit2f03073ff24bbb005d52db7e2b7a5ea32bb01140
tree861f13c464eff0a038edfad8ace1666e05fc8213
parent61afc8f8f0406f00e3020e862bb07c3b48ff26ca
omp-expand.c (expand_omp_for_static_nochunk): Don't emit GOMP_loop_start at the start of second worksharing loop in a scan.

* omp-expand.c (expand_omp_for_static_nochunk): Don't emit
GOMP_loop_start at the start of second worksharing loop in a scan.
For nowait, don't emit GOMP_loop_end_nowait at the end of first
worksharing loop in a scan even if there are conditional lastprivates,
and do emit GOMP_loop_end_nowait at the end of second worksharing loop.

* testsuite/libgomp.c/scan-9.c: New test.
* testsuite/libgomp.c/scan-10.c: New test.

From-SVN: r273095
gcc/ChangeLog
gcc/omp-expand.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/scan-10.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/scan-9.c [new file with mode: 0644]