:ADDPATCH fortran:
Hello world,
this is a fix for PR 29627, including a little cleanup.
Regression-tested against 4.3.0 on i686-pc-linux-gnu.
OK for trunk? What about 4.2 and 4.1?
Thomas
2006-10-29 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/29627
* libgfortran.h: Add ERROR_SHORT_RECORD
* runtime/error.c (translate_error): Add case
for ERROR_SHORT_RECORD.
* io/transfer.c (read_block_direct): Separate codepaths
for stream and record unformatted I/O. Remove unneeded
tests for standard input, padding and formatted I/O.
If the record is short, read in as much data as possible,
then raise the error.