]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran - Improve OpenMP/OpenACC diagnostic
authorTobias Burnus <tobias@codesourcery.com>
Tue, 8 Oct 2019 12:08:49 +0000 (14:08 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:51:25 +0000 (12:51 +0100)
commit8e86b4a5d0fd9c08fdc6069184cc98f0871317cb
treeacb2b690dc93995ccf886d869af1636c4cac7edb
parent97947c52561a9ef4cfef6d916ba056a72422dfad
Fortran - Improve OpenMP/OpenACC diagnostic

Backported from mainline.

        gcc/fortran/
        * match.h (gfc_match_omp_eos_error): Renamed from gfc_match_omp_eos.
        * openmp.c (gfc_match_omp_eos): Make static.
        (gfc_match_omp_eos_error): New.
        * parse.c (matchs, matchdo, matchds): Do as done for 'matcho' -
        if error occurred after OpenMP/OpenACC directive matched, do not
        try other directives.
        (decode_oacc_directive, decode_omp_directive): Call new function
        instead.

        testsuite/
        * gfortran.dg/goacc/continuation-free-form.f95: Update dg-error.

(cherry picked from openacc-gcc-9-branch commit
55858edc1aab472abe850a74b22302dcfa735715)
gcc/fortran/ChangeLog.omp
gcc/fortran/match.h
gcc/fortran/openmp.c
gcc/fortran/parse.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/goacc/continuation-free-form.f95