gcc/libgfortran
Thomas Koenig 108bc19009 re PR libfortran/34370 (file positioning after nonadvancing i/o)
2007-12-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/34370
	PR libfortran/34323
	PR libfortran/34405
	* io/io.h:  Add previous_nonadvancing_write to gfc_unit.
	Add prototype for finish_last_advance_record.
	* io/file_pos.c (st_backspace):  Generate error if backspace is
	attempted for direct access or unformatted stream.
	If there are bytes left from a previous ADVANCE="no", write
	them out before performing the backspace.
	(st_endfile):  Generate error if endfile is attempted for
	direct access.
	If there are bytes left from a previous ADVANCE="no", write
	them out before performing the endfile.
	(st_rewind):  Generate error if rewind is attempted for
	direct access.
	* unit.c (close_unit_1):  Move functionality to write
	previously written bytes to...
	(finish_last_advance_record):  ... here.
	* transfer.c (data_transfer_init):  If reading, reset
	previous_nonadvancing_write.
	(finalize_transfer):  Set the previous_noadvancing_write
	flag if we are writing and ADVANCE="no" was specified.
	Only call next_record() if advance="no" wasn't specified.

2007-12-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/34370
	PR libfortran/34323
	PR libfortran/34405
	* gfortran.dg/advance_6.f90:  New test case.
	* gfortran.dg/direct_io_7.f90:  New test case.
	* gfortran.dg/streamio_13.f90:  New test case.

From-SVN: r130912
2007-12-13 19:35:09 +00:00
..
config fpu-387.h: Include cpuid.h. 2007-09-07 11:34:36 +02:00
generated minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
intrinsics stat.c (stat_i4_sub_0, [...]): Mark parameter with unused attribute. 2007-12-01 21:16:26 +00:00
io re PR libfortran/34370 (file positioning after nonadvancing i/o) 2007-12-13 19:35:09 +00:00
m4 minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
runtime re PR fortran/33795 (Environment variable GFORTRAN_UNBUFFERED_<number> not working) 2007-10-19 04:10:58 +00:00
acinclude.m4 acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test. 2007-09-20 22:43:39 +00:00
aclocal.m4 Regenerate aclocal.m4 in boehm-gc, libffi, libgfortran, libgomp, 2007-07-05 10:54:10 -07:00
c99_protos.h re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-16 22:31:28 +00:00
ChangeLog re PR libfortran/34370 (file positioning after nonadvancing i/o) 2007-12-13 19:35:09 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004 re PR libfortran/31286 (cshift uses uninitialized variables) 2007-04-18 08:47:28 +00:00
ChangeLog-2005 re PR libfortran/31286 (cshift uses uninitialized variables) 2007-04-18 08:47:28 +00:00
ChangeLog-2006 re PR libfortran/31286 (cshift uses uninitialized variables) 2007-04-18 08:47:28 +00:00
config.h.in re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-16 22:31:28 +00:00
configure re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-16 22:31:28 +00:00
configure.ac re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-16 22:31:28 +00:00
configure.host
fmain.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
gfortran.map re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-30 04:14:01 +00:00
libgfortran.h libgfortran.h (GFC_REAL_*_HUGE, [...]): Remove. 2007-10-25 23:32:07 +00:00
libtool-version re PR libfortran/27107 (Make dependency on io/io.h broken) 2007-01-17 19:44:00 +00:00
Makefile.am re PR libfortran/31546 (add --enable-intermodule) 2007-09-21 19:49:34 +00:00
Makefile.in re PR libfortran/31546 (add --enable-intermodule) 2007-09-21 19:49:34 +00:00
mk-kinds-h.sh * mk-kinds-h.sh: Change sed syntax. 2007-11-08 19:17:19 +00:00
mk-sik-inc.sh
mk-srk-inc.sh