]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP/Fortran: Fix skipping unmatchable metadirectives [PR122570]
authorTobias Burnus <tburnus@baylibre.com>
Wed, 5 Nov 2025 11:51:37 +0000 (12:51 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Wed, 5 Nov 2025 11:51:37 +0000 (12:51 +0100)
commitdd62c97f1227d36770ff2e18411038f147e0bb5f
tree25058549dfa0bb5a9f17ec103dfcbf5ff7dcfffc
parent470411f44f51d9ef85bfcf3a8f9cb25344dd243f
OpenMP/Fortran: Fix skipping unmatchable metadirectives [PR122570]

Fix a bug in the removal code of always false variants in metadirectives.

PR fortran/122570

gcc/fortran/ChangeLog:

* openmp.cc (resolve_omp_metadirective): Fix 'skip' of
never matchable metadirective variants.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/pr122570.f: New test.
gcc/fortran/openmp.cc
gcc/testsuite/gfortran.dg/gomp/pr122570.f [new file with mode: 0644]