[Fortran] OpenMP - permit lastprivate in distribute + SIMD fixes (PR94690)
authorTobias Burnus <tobias@codesourcery.com>
Wed, 13 May 2020 08:06:45 +0000 (10:06 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 13 May 2020 08:06:45 +0000 (10:06 +0200)
commitf884bef21cccc05d748fd7869cd641cbb4f6b6bb
treeed7ca416894ca3fa773b4bb4edebb46e593bb2fe
parent3d96f7b92415b7a277a87e7825efc958030e20b6
[Fortran] OpenMP - permit lastprivate in distribute + SIMD fixes (PR94690)

gcc/fortran/
2020-05-13  Tobias Burnus  <tobias@codesourcery.com>

PR fortran/94690
        * openmp.c (OMP_DISTRIBUTE_CLAUSES): Add OMP_CLAUSE_LASTPRIVATE.
        (gfc_resolve_do_iterator): Skip the private handling for SIMD as
        that is handled by ME code.
* trans-openmp.c (gfc_trans_omp_do): Don't add private/lastprivate
for dovar_found == 0, unless !simple.

libgomp/
2020-05-13  Tobias Burnus  <tobias@codesourcery.com>

PR fortran/94690
* testsuite/libgomp.fortran/pr66199-3.f90: New.
* testsuite/libgomp.fortran/pr66199-4.f90: New.
* testsuite/libgomp.fortran/pr66199-5.f90: New.
* testsuite/libgomp.fortran/pr66199-6.f90: New.
* testsuite/libgomp.fortran/pr66199-7.f90: New.
* testsuite/libgomp.fortran/pr66199-8.f90: New.
* testsuite/libgomp.fortran/pr66199-9.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/pr66199-3.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-4.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-5.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-6.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-7.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-8.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr66199-9.f90 [new file with mode: 0644]