omp-expand.c (expand_omp_for_static_nochunk, [...]): For nowait worksharing loop...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jul 2019 04:51:45 +0000 (06:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jul 2019 04:51:45 +0000 (06:51 +0200)
commit1a39b3d3e22ba34b750e277fae9634d0af015cae
tree8053a414e8bfb250cf183875bac03ed33de612fc
parent61a02d1e97aa9b2cb3c4e3e5c823d3a8a4c5834c
omp-expand.c (expand_omp_for_static_nochunk, [...]): For nowait worksharing loop with conditional lastprivate clause(s)...

* omp-expand.c (expand_omp_for_static_nochunk,
expand_omp_for_static_chunk): For nowait worksharing loop with
conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
at the end.

* c-c++-common/gomp/lastprivate-conditional-5.c: New test.

From-SVN: r272956
gcc/ChangeLog
gcc/omp-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/lastprivate-conditional-5.c [new file with mode: 0644]