diff options
author | Bud Davis <bdavis9659@comcast.net> | 2004-12-02 04:29:00 +0000 |
---|---|---|
committer | Bud Davis <bdavis@gcc.gnu.org> | 2004-12-02 04:29:00 +0000 |
commit | 78579b601d74b339eadbc08bb3cf1a4c48a70f69 (patch) | |
tree | 745d1aebc5887dc0f235b340b7d4bbafb28bbc61 /libgfortran/io/backspace.c | |
parent | f177a087002cef5c40eab070151d6dee4e39d346 (diff) | |
download | gcc-78579b601d74b339eadbc08bb3cf1a4c48a70f69.zip gcc-78579b601d74b339eadbc08bb3cf1a4c48a70f69.tar.gz gcc-78579b601d74b339eadbc08bb3cf1a4c48a70f69.tar.bz2 |
re PR libfortran/18284 (BACKSPACE broken)
2004-12-02 Bud Davis <bdavis9659@comcast.net>
PR libfortran/18284
* io/unix.c (fd_alloc_w_at): Update file_length when extending.
* io/backspace.c (formatted_backspace): Reset endfile after backspace.
PR fortran/18284
* gfortran.dg/backspace.f90
From-SVN: r91612
Diffstat (limited to 'libgfortran/io/backspace.c')
-rw-r--r-- | libgfortran/io/backspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgfortran/io/backspace.c b/libgfortran/io/backspace.c index c40e506..e378adf 100644 --- a/libgfortran/io/backspace.c +++ b/libgfortran/io/backspace.c @@ -77,6 +77,7 @@ done: if (sseek (current_unit->s, base) == FAILURE) goto io_error; current_unit->last_record--; + current_unit->endfile = NO_ENDFILE; return; |