]> 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>
Wed, 17 Aug 2022 14:19:58 +0000 (16:19 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 17 Aug 2022 14:19:58 +0000 (16:19 +0200)
commit1513512ec7d0751cba30c9c8804f2be462acfb9b
treec48a76e140ac29ce0f04eb4aa257758851740a69
parent027b281f1e8de55d959695c7f1e80572fae6dbe7
Fortran: OpenMP fix declare simd inside modules and absent linear step [PR106566]

gcc/fortran/ChangeLog:

PR fortran/106566
* openmp.cc (gfc_match_omp_clauses): Fix setting linear-step value
to 1 when not specified.
(gfc_match_omp_declare_simd): Accept module procedures.

gcc/testsuite/ChangeLog:

PR fortran/106566
* gfortran.dg/gomp/declare-simd-4.f90: New test.
* gfortran.dg/gomp/declare-simd-5.f90: New test.
* gfortran.dg/gomp/declare-simd-6.f90: New test.
gcc/fortran/openmp.cc
gcc/testsuite/gfortran.dg/gomp/declare-simd-4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/declare-simd-5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/declare-simd-6.f90 [new file with mode: 0644]