aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2007-09-07 20:16:05 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2007-09-07 20:16:05 +0000
commit3a6666054ec4af338a97fb9f1e60e1acec3e8d43 (patch)
tree5d9ed60f54caed409368b8357d6d4f8740fc9387 /libgfortran
parent0ab29e91aa022fa127648246e5b15f609ae48ee4 (diff)
downloadgcc-3a6666054ec4af338a97fb9f1e60e1acec3e8d43.zip
gcc-3a6666054ec4af338a97fb9f1e60e1acec3e8d43.tar.gz
gcc-3a6666054ec4af338a97fb9f1e60e1acec3e8d43.tar.bz2
re PR fortran/33307 (I/O read/positioning problem)
2007-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/33307 * io/filepos.c (st_backspace): Don't truncate when already at the end of the file. From-SVN: r128253
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/file_pos.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 3042685..4c92333 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/33307
+ * io/filepos.c (st_backspace): Don't truncate when already at the end
+ of the file.
+
2007-09-07 Uros Bizjak <ubizjak@gmail.com>
* config/fpu-387.h: Include cpuid.h.
diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c
index c0412e8..96e5e24 100644
--- a/libgfortran/io/file_pos.c
+++ b/libgfortran/io/file_pos.c
@@ -213,7 +213,6 @@ st_backspace (st_parameter_filepos *fpp)
u->endfile = AT_ENDFILE;
u->flags.position = POSITION_APPEND;
flush (u->s);
- struncate (u->s);
}
else
{