Fortran] PR 92793 - fix column used for error diagnostic
authorTobias Burnus <tobias@codesourcery.com>
Sat, 7 Dec 2019 11:07:07 +0000 (11:07 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 7 Dec 2019 11:07:07 +0000 (12:07 +0100)
commit9c81750c5bedd7883182ee2684a012c6210ebe1d
treea3355f687262d05caae19a9ab28b2fba2c9745ac
parentb01d215df18ba753746a170125b883befe100d67
Fortran] PR 92793 - fix column used for error diagnostic

        PR fortran/92793
        * trans.c (gfc_get_location): Declare.
        * trans.c (gfc_get_location): Define; returns column-corrected location.
        (trans_runtime_error_vararg, gfc_trans_runtime_check,
        gfc_generate_module_code): Use new function.
        * trans-array.c (gfc_trans_auto_array_allocation): Likewise.
        * trans-common.c (build_field, get_init_field, create_common): Likewise.
        * trans-decl.c (gfc_build_label_decl, gfc_get_symbol_decl): Likewise.
        * trans-openmp.c (gfc_trans_omp_reduction_list, gfc_trans_omp_clauses):
        Likewise.
        * trans-stmt.c (gfc_trans_if_1): Likewise.

From-SVN: r279075
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-common.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-openmp.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.c
gcc/fortran/trans.h