Fortran - Improve OpenMP/OpenACC diagnostic
authorTobias Burnus <tobias@codesourcery.com>
Tue, 8 Oct 2019 10:49:27 +0000 (10:49 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 8 Oct 2019 10:49:27 +0000 (12:49 +0200)
commit8beaf167f7ca723101e87da432870b65ff521e99
tree0cdde010d1a0ab9f25491e6c335f5b44ee220020
parentdb4fd465197346f0023dc7821ba14da6987042c7
Fortran - Improve OpenMP/OpenACC diagnostic

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.

From-SVN: r276694
gcc/fortran/ChangeLog
gcc/fortran/match.h
gcc/fortran/openmp.c
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/continuation-free-form.f95