gcc/libgfortran/io
Jerry DeLisle 59011a60c0 re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file)
2010-03-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/43265
	* io/io.h: Delete prototype for read_sf, making it static.
	* io/read.c (read_x): Modify to call hit_eof if PAD="no".
	* io/transfer.c (read_sf_internal): New static function extracted from
	read_sf for use on internal units only. Handle empty string case.
	(read_sf): New factoring of this function, make it static.  Add special
	conditions for EOF based on ADVANCE="no", PAD="no", and whether any
	bytes have been previously read from the record.
	(read_block_form): Modify to call read_sf or read_sf_internal.
	(next_record_r): Add a done flag similar to next_record_w. Call hit_eof
	if internal array unit next record returns finished, meaning an EOF was
	found and not done, ie not the last record expected.  For external
	units call hit_eof if item_count is 1 or there are no pending spaces.
	(next_record): Update call to next_record_r.

From-SVN: r157527
2010-03-18 02:38:17 +00:00
..
close.c Split up io/io.h 2009-11-02 23:52:59 +02:00
fbuf.c Split up io/io.h 2009-11-02 23:52:59 +02:00
fbuf.h Move includes after include guards 2009-11-19 22:23:03 +02:00
file_pos.c Split up io/io.h 2009-11-02 23:52:59 +02:00
format.c format.c (parse_format_list): Add to ERROR, WARNING, SILENT enumerators NOTIFICATION_ prefix. 2010-03-12 15:43:55 +01:00
format.h Move includes after include guards 2009-11-19 22:23:03 +02:00
inquire.c Split up io/io.h 2009-11-02 23:52:59 +02:00
intrinsics.c Split up io/io.h 2009-11-02 23:52:59 +02:00
io.h re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file) 2010-03-18 02:38:17 +00:00
list_read.c re PR fortran/43228 (NAMELIST I/O: Reading at 2 dimensions (rank) array values.) 2010-03-11 17:06:37 +01:00
lock.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
open.c Split up io/io.h 2009-11-02 23:52:59 +02:00
read.c re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file) 2010-03-18 02:38:17 +00:00
size_from_kind.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
transfer.c re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file) 2010-03-18 02:38:17 +00:00
unit.c Split up io/io.h 2009-11-02 23:52:59 +02:00
unix.c PR libfortran/42420 Large file capable stat for MingW 2010-01-03 20:09:37 +02:00
unix.h PR libfortran/40812 Large file support for MinGW 2009-12-04 18:28:44 +02:00
write_float.def * io/write_float.def (WRITE_FLOAT): Use __builtin_signbit. 2010-02-24 15:35:40 +00:00
write.c pack_generic.c (pack_internal): Remove unused zero_sized variable. 2009-11-28 21:29:51 +01:00