gimplify.c (gimplify_scan_omp_clauses): For inscan reductions on worksharing loop...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jul 2019 04:56:25 +0000 (06:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jul 2019 04:56:25 +0000 (06:56 +0200)
commit83eb9522087c0f1f152873da00ade34e5f3e67e5
treedf2542661fab9ef8615c69f2f2a5c03502eec739
parent1a39b3d3e22ba34b750e277fae9634d0af015cae
gimplify.c (gimplify_scan_omp_clauses): For inscan reductions on worksharing loop propagate it as shared clause to...

* gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
on worksharing loop propagate it as shared clause to containing
combined parallel.

* c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_REDUCTION_INSCAN
clauses on OMP_FOR rather than OMP_PARALLEL when OMP_FOR is combined
with OMP_PARALLEL.

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

From-SVN: r272957
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/scan-5.c [new file with mode: 0644]