omp-low.c (lower_rec_input_clauses): For lastprivate clauses in ctx->for_simd_scan_ph...
authorJakub Jelinek <jakub@redhat.com>
Sat, 6 Jul 2019 21:58:01 +0000 (23:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 6 Jul 2019 21:58:01 +0000 (23:58 +0200)
commit6f67abcdb04285553226b82f689f876222f0d38b
treef449bacab0614115cf88a2c0da01eea7ade1ee8d
parent94e14f2e90e3c13894f3b1df39cd1f28f1081d3b
omp-low.c (lower_rec_input_clauses): For lastprivate clauses in ctx->for_simd_scan_phase simd copy the outer var to...

* omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
ctx->for_simd_scan_phase simd copy the outer var to the privatized
variable(s).  For conditional lastprivate look through outer
GIMPLE_OMP_SCAN context.
(lower_omp_1): For conditional lastprivate look through outer
GIMPLE_OMP_SCAN context.

* testsuite/libgomp.c/scan-19.c: New test.
* testsuite/libgomp.c/scan-20.c: New test.

From-SVN: r273169
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/scan-19.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/scan-20.c [new file with mode: 0644]