gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional on sections...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 May 2019 21:33:37 +0000 (23:33 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 May 2019 21:33:37 +0000 (23:33 +0200)
commit8e7757ba17b1aeb83387c33004149a185a5fa137
tree7b0ead544da63501144fb40b91e57cef10f84917
parent36c7a3fff99326a1dd45f495ee8e1b6bfd6cf9f5
gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional on sections construct.

* gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
on sections construct.
* omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
construct.
(lower_omp_sections): Handle lastprivate conditional.
(lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
lastprivate_conditional_map.
* omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
libgomp/
* testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.

From-SVN: r271673
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-expand.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c [new file with mode: 0644]