gcc/libgfortran
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
..
config Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
generated pack_generic.c (pack_internal): Remove unused zero_sized variable. 2009-11-28 21:29:51 +01:00
intrinsics libgfortran.h (_POSIX): Define if __MINGW32__ is defined. 2010-03-08 09:01:55 +01:00
io re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file) 2010-03-18 02:38:17 +00:00
m4 pack_generic.c (pack_internal): Remove unused zero_sized variable. 2009-11-28 21:29:51 +01:00
runtime format.c (parse_format_list): Add to ERROR, WARNING, SILENT enumerators NOTIFICATION_ prefix. 2010-03-12 15:43:55 +01:00
acinclude.m4 re PR fortran/31832 (FAIL: gfortran.dg/integer_exponentiation_2.f90 at -O1 and above) 2008-12-29 20:10:00 +00:00
aclocal.m4 Regenerate tree using Autoconf 2.64 and Automake 1.11. 2009-08-22 13:22:20 +00:00
c99_protos.h re PR fortran/33197 (Fortran 2008: math functions) 2009-07-25 21:39:07 +02:00
ChangeLog re PR fortran/43265 (No EOF condition if reading with '(x)' from an empty file) 2010-03-18 02:38:17 +00:00
ChangeLog-2002 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2003 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2004 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2005 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2006 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2007 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2008 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
ChangeLog-2009 ChangeLog-2002: Add copyright footer. 2010-01-04 09:59:59 +01:00
config.h.in configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm. 2009-09-22 12:23:06 +02:00
configure stdint.m4 (GCC_HEADER_STDINT): Don't typedef uint8_t etc. 2010-01-05 14:02:37 +00:00
configure.ac configure.ac: Check for GFORTRAN_C99_1.1 funcs in OS libm. 2009-09-22 12:23:06 +02:00
configure.host configure.host: Define ieee_flags and set it to -mieee for sh. 2009-07-30 22:56:08 +00:00
fmain.c Add comment saying file is deprecated 2009-08-14 20:54:27 +03:00
gfortran.map backport: re PR fortran/42053 ([OOP] SELECT TYPE: reject duplicate CLASS IS blocks) 2009-11-30 21:43:06 +01:00
libgfortran.h format.c (parse_format_list): Add to ERROR, WARNING, SILENT enumerators NOTIFICATION_ prefix. 2010-03-12 15:43:55 +01:00
libtool-version re PR libfortran/27107 (Make dependency on io/io.h broken) 2007-01-17 19:44:00 +00:00
Makefile.am backport: re PR fortran/42053 ([OOP] SELECT TYPE: reject duplicate CLASS IS blocks) 2009-11-30 21:43:06 +01:00
Makefile.in Sync from git Libtool and regenerate. 2009-12-05 17:18:53 +00:00
mk-kinds-h.sh mk-kinds-h.sh: Make -Wunused-variable proof. 2008-09-10 18:39:15 +02:00
mk-sik-inc.sh mk-sik-inc.sh: Make -Wunused-variable proof. 2008-09-10 19:18:08 +02:00
mk-srk-inc.sh mk-sik-inc.sh: Make -Wunused-variable proof. 2008-09-10 19:18:08 +02:00