omp-low.c (lower_omp_1): Look through ordered...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 May 2019 21:31:40 +0000 (23:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 May 2019 21:31:40 +0000 (23:31 +0200)
commit36c7a3fff99326a1dd45f495ee8e1b6bfd6cf9f5
tree38f0b99df61879faaca9017c663f679c6d32a82f
parentfcfb80325f3ef08b0ee07edc42eef15298ba80ec
omp-low.c (lower_omp_1): Look through ordered...

* omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
critical, taskgroup and section regions when looking for a region
with non-NULL lastprivate_conditional_map.

* testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.

From-SVN: r271672
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c [new file with mode: 0644]