Fortran: Fix OpenMP's 'if(simd:' etc. conditions
authorTobias Burnus <tobias@codesourcery.com>
Thu, 20 Aug 2020 11:33:21 +0000 (13:33 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 20 Aug 2020 11:33:40 +0000 (13:33 +0200)
commit656218ab982cc22b826227045826c92743143af1
treec133194474a2e0c74e5a1e8854d35cda80e3d29b
parent1763ec9b20c0146a5a47f2259a44db1fbb9c923a
Fortran: Fix OpenMP's 'if(simd:' etc. conditions

gcc/fortran/ChangeLog:

* openmp.c (gfc_match_omp_clauses): Re-order 'if' clause pasing
to avoid creating spurious symbols.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/gomp/pr67500.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/lastprivate-conditional-10.f90 [new file with mode: 0644]