diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2019-10-08 14:08:49 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-03-03 12:51:25 +0100 |
commit | 8e86b4a5d0fd9c08fdc6069184cc98f0871317cb (patch) | |
tree | acb2b690dc93995ccf886d869af1636c4cac7edb /libgomp | |
parent | 97947c52561a9ef4cfef6d916ba056a72422dfad (diff) | |
download | gcc-8e86b4a5d0fd9c08fdc6069184cc98f0871317cb.zip gcc-8e86b4a5d0fd9c08fdc6069184cc98f0871317cb.tar.gz gcc-8e86b4a5d0fd9c08fdc6069184cc98f0871317cb.tar.bz2 |
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)
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions