Fortran: Fix line-truncation warning for !$acc and !gcc$
authorTobias Burnus <tobias@codesourcery.com>
Wed, 14 Oct 2020 13:48:22 +0000 (15:48 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 14 Oct 2020 13:48:22 +0000 (15:48 +0200)
commit4aa9742252ea419947fe32ff64c7546c92286b96
tree7987aa8f357420c58ecd58572ea75e030354d4b5
parentec5e6467091ee0f8de2f894f0c1669465a8440f1
Fortran: Fix line-truncation warning for !$acc and !gcc$

gcc/fortran/ChangeLog:

PR fortran/97390
* scanner.c (load_line): Fix line-truncation warning for !$acc
and !gcc$ in free-form source code.

gcc/testsuite/ChangeLog:

PR fortran/97390
* gfortran.dg/goacc/warn_truncated.f90: New test.
gcc/fortran/scanner.c
gcc/testsuite/gfortran.dg/goacc/warn_truncated.f90 [new file with mode: 0644]