]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Improve Fortran Diagnostics for Linear Clause
authorsupers1ngular <supers1ngular@baylibre.com>
Tue, 6 Jan 2026 01:09:02 +0000 (17:09 -0800)
committersupers1ngular <supers1ngular@baylibre.com>
Tue, 6 Jan 2026 01:09:02 +0000 (17:09 -0800)
commitcdb15b390035fc4843e11363bcc4e0eff419d6a3
tree3b5505f85f65f35f16c45c758d9f1cb1fabcdd89
parentfb9384358758f4efd1c5adce14e1053bd288e058
openmp: Improve Fortran Diagnostics for Linear Clause

This patch improves diagnostics for the linear clause,
providing a more accurate and intuitive recommendation
for remediation if the deprecated syntax is used.
Additionally updates the relevant test to reflect the
changed verbiage of the warning.

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_clauses): New diagnostic logic.

libgomp/ChangeLog:

* testsuite/libgomp.fortran/pr84418-1.f90: Fix verbiage of
dg-warning to reflect updated warning.
gcc/fortran/openmp.cc
libgomp/testsuite/libgomp.fortran/pr84418-1.f90