OSDN Git Service

2008-01-03 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2008 19:49:38 +0000 (19:49 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Jan 2008 19:49:38 +0000 (19:49 +0000)
commitcf4abc57c8be3b23d98fcbe6db5e1d2883f5cb5b
tree407a1075cdef9fa8b447f85bf9e754483cb358c1
parentcde59b72c9b49740d7f7822c649c2a28c77c187c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131305 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/internal_readwrite_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/internal_readwrite_2.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/list_read.c
libgfortran/io/transfer.c
libgfortran/io/unit.c
libgfortran/io/unix.c