]> gcc.gnu.org Git - gcc.git/commit
Fortran: Improve file-reading error diagnostic [PR55534]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 24 Sep 2021 07:30:51 +0000 (09:30 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 24 Sep 2021 07:30:51 +0000 (09:30 +0200)
commit204f56aa65d2496e9f7db86c4aa37d42a336fc5b
tree0c631d838c5ac345e701a4b21a7d519744ee85b1
parent4a960d548b7d7d942f316c5295f6d849b74214f5
Fortran: Improve file-reading error diagnostic [PR55534]

PR fortran/55534

gcc/fortran/ChangeLog:

* scanner.c (load_file): Return void, call (gfc_)fatal_error for
all errors.
(include_line, include_stmt, gfc_new_file): Remove exit call
for failed load_file run.

gcc/testsuite/ChangeLog:

* gfortran.dg/include_9.f90: Add dg-prune-output.
* gfortran.dg/include_23.f90: New test.
* gfortran.dg/include_24.f90: New test.
gcc/fortran/scanner.c
gcc/testsuite/gfortran.dg/include_23.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/include_24.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/include_9.f90
This page took 0.064475 seconds and 5 git commands to generate.