re PR fortran/63858 (fixed form OpenACC directive ICE with -fopenacc -fopenmp)
authorIlmir Usmanov <me@ilmir.us>
Wed, 25 Nov 2015 14:37:36 +0000 (14:37 +0000)
committerCesar Philippidis <cesar@gcc.gnu.org>
Wed, 25 Nov 2015 14:37:36 +0000 (06:37 -0800)
commitaa81272c9f98818910466728a58425d44884983a
tree52b1541b1db6fe53914d05a1f4d4e68fc9e68de7
parentaf11fcfdcfa7d9c2aea6defbf713afe6061511bf
re PR fortran/63858 (fixed form OpenACC directive ICE with -fopenacc -fopenmp)

PR fortran/63858

gcc/fortran/
* scanner.c (skip_oacc_attribute): Remove continue_flag parameter.
Rename as ...
(skip_free_oacc_sentinel): ... this.
(skip_omp_attribute): Remove continue_flag parameter. Rename as ...
(skip_free_omp_sentinel): ... this.
(skip_free_comments): Update to call skip_free_oacc_sentinel and
skip_free_omp_sentinel.
(skip_fixed_omp_sentinel): New function.
(skip_fixed_oacc_sentinel): New function.
(skip_fixed_comments): Fix mix of OpenACC and OpenMP sentinels in
continuation.

gcc/testsuite/
* goacc/omp-fixed.f: New test.
* goacc/omp.f95: Add check for mis-matched omp and acc continuations.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r230872
gcc/fortran/ChangeLog
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/omp-fixed.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/omp.f95