]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: OpenMP fix declare simd inside modules and absent linear step [PR106566]
authorTobias Burnus <tobias@codesourcery.com>
Tue, 23 Aug 2022 09:29:23 +0000 (11:29 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 23 Aug 2022 09:29:23 +0000 (11:29 +0200)
commit50b7cf395656ccd32d4d5d8e0e338135d28f52f6
tree1194e0f5e9f7cbe2d8a9995606659006d6304415
parent2413eed009878c347c65950c649c0da59e759238
Fortran: OpenMP fix declare simd inside modules and absent linear step [PR106566]

Partial backport from commit r13-2093, only, as 'OpenMP 5.2 linear
clause syntax' is not on GCC 12.

gcc/fortran/ChangeLog:

PR fortran/106566
* openmp.cc (gfc_match_omp_declare_simd): Accept module procedures.

gcc/testsuite/ChangeLog:

PR fortran/106566
* gfortran.dg/gomp/declare-simd-6.f90: New test.

(cherry picked from commit 1513512ec7d0751cba30c9c8804f2be462acfb9b)
gcc/fortran/openmp.cc
gcc/testsuite/gfortran.dg/gomp/declare-simd-6.f90 [new file with mode: 0644]