gcc/libgfortran
Thomas Koenig b4c811bd14 re PR libfortran/30009 ([4.1 only] Unformatted reads exceeding storage units gives EOF instead of ERR)
2006-12-06  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/30009
	PR libfortran/30056
	* gfortran.dg/read_eof_4.f90:  Add tests.
	* gfortran.dg/readwrite_unf_direct_eor_1.f90:  New test.
	* gfortran.dg/unf_read_corrupted_1.f90: New test.

2006-12-06  Thomas Koenig  <Thomas.Koenig@online.de>

	PR libfortran/30009
	PR libfortran/30056
	* libgfortran.h:  Add ERROR_CORRUPT_FILE to error_codes.
	* runtime/error.c (translate_error):  Add handling for
	ERROR_CORRUPT_FILE.
	* io/transfer.c (read_block_direct):  Add comment about
	EOR for stream files.
	Remove test for no bytes left for direct access files.
	Generate an ERROR_SHORT_RECORD if the read was short.
	For unformatted sequential files:  Check endfile condition.
	Remove test for no bytes left.  End of file here means
	that the file structure has been corrupted.  Pre-position
	the file for the next record in case of error.
	(write_buf):  Whitespace fix.  Subtract the number of bytes
	written from bytes_left.

From-SVN: r119592
2006-12-06 19:25:44 +00:00
..
config fpu-387.h: Use previously added SSE code in all cases, as it really is the right thing to do. 2006-04-01 21:24:24 +00:00
generated re PR libfortran/27895 (problem with RESHAPE and zero-sized arrays) 2006-11-03 11:51:09 +00:00
intrinsics Makefile.am: Remove intrinsics/erf.c and intrinsics/bessel.c. 2006-11-25 17:22:53 +00:00
io re PR libfortran/30009 ([4.1 only] Unformatted reads exceeding storage units gives EOF instead of ERR) 2006-12-06 19:25:44 +00:00
m4 re PR libfortran/27895 (problem with RESHAPE and zero-sized arrays) 2006-11-03 11:51:09 +00:00
runtime re PR libfortran/30009 ([4.1 only] Unformatted reads exceeding storage units gives EOF instead of ERR) 2006-12-06 19:25:44 +00:00
acinclude.m4 acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test. 2006-10-06 08:21:22 +00:00
aclocal.m4 configure: Regenerate. 2006-10-29 11:34:53 +00:00
c99_protos.h Makefile.am: Remove intrinsics/erf.c and intrinsics/bessel.c. 2006-11-25 17:22:53 +00:00
ChangeLog re PR libfortran/30009 ([4.1 only] Unformatted reads exceeding storage units gives EOF instead of ERR) 2006-12-06 19:25:44 +00:00
ChangeLog-2002 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2003 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2004 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
ChangeLog-2005 * Split the ChangeLog into years. 2006-01-01 17:14:35 +00:00
config.h.in re PR fortran/15441 (RRSPACING broken for denormals) 2006-10-09 20:55:29 +00:00
configure configure: Regenerate. 2006-10-29 11:34:53 +00:00
configure.ac re PR fortran/15441 (RRSPACING broken for denormals) 2006-10-09 20:55:29 +00:00
configure.host acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check. 2005-10-28 20:13:20 +00:00
fmain.c
libgfortran.h re PR libfortran/30009 ([4.1 only] Unformatted reads exceeding storage units gives EOF instead of ERR) 2006-12-06 19:25:44 +00:00
libtool-version etime.c: Remove etime_ 2006-07-15 16:12:15 +00:00
Makefile.am Makefile.am: Remove intrinsics/erf.c and intrinsics/bessel.c. 2006-11-25 17:22:53 +00:00
Makefile.in Makefile.am: Remove intrinsics/erf.c and intrinsics/bessel.c. 2006-11-25 17:22:53 +00:00
mk-kinds-h.sh re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
mk-sik-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00
mk-srk-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00