]> git.ipfire.org Git - thirdparty/gcc.git/commit
Further improve Fortran column location information [PR92793]
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 30 Oct 2020 12:13:51 +0000 (13:13 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Mon, 2 Nov 2020 13:28:04 +0000 (14:28 +0100)
commita5c5f9e181c1f7548930f1cab91002b9d460cc92
tree570269d958aac3d188e962d7e0fab7ad635d264a
parent591e878fc6dd08502429a8e480d8e7d966836ca9
Further improve Fortran column location information [PR92793]

Building on top of commit 9c81750c5bedd7883182ee2684a012c6210ebe1d "Fortran] PR
92793 - fix column used for error diagnostic", there is another place where we
have to use 'gfc_get_location' returning column-corrected locations.

For example, this improves column location information for OMP constructs.

gcc/fortran/
PR fortran/92793
* trans.c (gfc_set_backend_locus): Use 'gfc_get_location'.
(gfc_restore_backend_locus): Adjust.
gcc/testsuite/
PR fortran/92793
* gfortran.dg/goacc/pr92793-1.f90: Adjust.

(cherry picked from commit 5677444f7e7ca15557030902c3d09dab4852fa90)
gcc/fortran/trans.c
gcc/testsuite/gfortran.dg/goacc/pr92793-1.f90