summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-16 17:37:30 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-16 17:37:30 +0000
commitc4755a91ea781e9d1eabc5c743d21f556eb58342 (patch)
treea27cc7e95bff478494e8a84ef5edf29417f2f678 /libgfortran
parent7e221851922bbb6cd38149d835bf7f494970aead (diff)
downloadgcc-c4755a91ea781e9d1eabc5c743d21f556eb58342.tar.gz
Fix fallout from part 1 of PR25561 patch.
2008-05-16 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/35632 * io/open.c (new_unit): Set stream position to correct value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/io/open.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index c363ecfd171..f83115ec0ce 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-16 Janne Blomqvist <jb@gcc.gnu.org>
+
+ PR libfortran/35632
+ * io/open.c (new_unit): Set stream position to correct value.
+
2008-05-15 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/25561
diff --git a/libgfortran/io/open.c b/libgfortran/io/open.c
index e16386cabd7..d95eccbc12d 100644
--- a/libgfortran/io/open.c
+++ b/libgfortran/io/open.c
@@ -611,7 +611,7 @@ new_unit (st_parameter_open *opp, gfc_unit *u, unit_flags * flags)
{
u->maxrec = max_offset;
u->recl = 1;
- u->strm_pos = 1;
+ u->strm_pos = file_position (u->s) + 1;
}
memmove (u->file, opp->file, opp->file_len);