re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 9 Mar 2010 14:41:17 +0000 (14:41 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Tue, 9 Mar 2010 14:41:17 +0000 (14:41 +0000)
commit04b98fd2ed2305e477e2511fc5f4a07e440cf71b
tree1618576efa6cabe6dfe75dbdbe9586fc3f6b7482
parent2f9b99e6c664ac542529117b198b6ebc1a56cdf0
re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)

2010-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/43265
* io/read.c: Include fbuf.h and unix.h to enable lower level I/O for
read_x. (read_x): Replace the use of read_sf with equivalent lower level
I/O, eliminating unneeded code and handling EOF and EOR conditions.
* io/io.h: Revise prototype for read_sf.
* io/transfer.c (read_sf): Delete no_error parameter and all uses of it.
(read_block_form): Likewise.
(next_record_r): Delete wrong code call to hit_eof.

From-SVN: r157310
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/read.c
libgfortran/io/transfer.c