OpenMP/Fortran: Fix EXIT in loop diagnostic [PR105242]
authorTobias Burnus <tobias@codesourcery.com>
Wed, 13 Apr 2022 16:40:52 +0000 (18:40 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 13 Apr 2022 16:40:52 +0000 (18:40 +0200)
commit469fad0161afeb9369010ad498198297993ca592
treef8dbe12d99329f26ff141570055c48135d07f549
parentec03862f809e544a9b7d28067e51597dc92a0244
OpenMP/Fortran: Fix EXIT in loop diagnostic [PR105242]

gcc/fortran/ChangeLog:

PR fortran/105242
* match.cc (match_exit_cycle): Handle missing OMP LOOP, DO and SIMD
directives in the EXIT/CYCLE diagnostic.

gcc/testsuite/ChangeLog:

PR fortran/105242
* gfortran.dg/gomp/loop-exit.f90: New test.
gcc/fortran/match.cc
gcc/testsuite/gfortran.dg/gomp/loop-exit.f90 [new file with mode: 0644]