gcc/libgfortran/io
Thomas Koenig 9370b3c0f9 re PR fortran/34565 (internal write to string array fails)
2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/34565
	* io/io.h:  Adjust protoypes for open_internal(),
	next_array_record() and init_loop_spec().
	* io/list_read.c (next_char):  Use argument "finished"
	of next_array_record to check for end on internal file.
	* io/unit.c:  Calculate the offset for an array
	internal file and supply this informatin to open_internal().
	* io/unix.c (open_internal):  Set the offset for the internal
	file on open.
	* io/transfer.c (init_loop_spec):  Calculate the starting
	record in case of negative strides.  Return size of 0 for
	an empty array.
	(next_array_record):  Use an extra flag to signal that the
	array is finished.
	(next_record_r):  Use the new flag to next_array_record().
	(next_record_w):  Likewise.

2008-01-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/34565
	* gfortran.dg/internal_readwrite_1.f90:  New test.
	* gfortran.dg/internal_readwrite_2.f90:  New test.

From-SVN: r131305
2008-01-03 19:49:38 +00:00
..
close.c re PR fortran/31675 (Fortran front-end and libgfortran should have a common header file) 2007-09-03 16:44:15 +00:00
file_pos.c re PR libfortran/34370 (file positioning after nonadvancing i/o) 2007-12-13 19:35:09 +00:00
format.c re PR fortran/31675 (Fortran front-end and libgfortran should have a common header file) 2007-09-03 16:44:15 +00:00
inquire.c re PR libfortran/33055 (Runtime error in INQUIRE unit existance with -fdefault-integer-8) 2007-10-15 13:59:02 +00:00
intrinsics.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
io.h re PR fortran/34565 (internal write to string array fails) 2008-01-03 19:49:38 +00:00
list_read.c re PR fortran/34565 (internal write to string array fails) 2008-01-03 19:49:38 +00:00
lock.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
open.c re PR fortran/31675 (Fortran front-end and libgfortran should have a common header file) 2007-09-03 16:44:15 +00:00
read.c re PR fortran/34411 (hang-up during read of non-expected input) 2007-12-11 03:49:52 +00:00
size_from_kind.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
transfer.c re PR fortran/34565 (internal write to string array fails) 2008-01-03 19:49:38 +00:00
unit.c re PR fortran/34565 (internal write to string array fails) 2008-01-03 19:49:38 +00:00
unix.c re PR fortran/34565 (internal write to string array fails) 2008-01-03 19:49:38 +00:00
write_float.def re PR libfortran/33225 (Missing last digit in some formatted output (on 32bit targets), per kind write_float) 2007-09-05 00:51:18 +00:00
write.c re PR libfortran/33469 (Default formats for real input are not precise enough) 2007-10-02 23:27:51 +00:00