]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran/OpenMP: Add location data to 'sorry' [PR118740]
authorTobias Burnus <tburnus@baylibre.com>
Wed, 5 Feb 2025 13:03:47 +0000 (14:03 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Wed, 5 Feb 2025 13:34:06 +0000 (14:34 +0100)
commit6f95af4f22b641fbb3509f1436bce811d4e4acad
tree00b2debc23985320ec094ac50b4bd3ad82c11767
parent6094801d6fd7849d2d95ce78f7c6ef01686b9f63
Fortran/OpenMP: Add location data to 'sorry' [PR118740]

PR fortran/118740

gcc/fortran/ChangeLog:

* openmp.cc (gfc_match_omp_context_selector, match_omp_metadirective):
Change sorry to sorry_at and use gfc_current_locus as location.
* trans-openmp.cc (gfc_trans_omp_clauses): Likewise, but use n->where.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/append_args-2.f90: Update for line change.
gcc/fortran/openmp.cc
gcc/fortran/trans-openmp.cc
gcc/testsuite/gfortran.dg/gomp/append_args-2.f90