re PR libfortran/20068 (Backspace problems)
authorDale Ranta <dir@lanl.gov>
Sun, 3 Apr 2005 08:07:43 +0000 (08:07 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sun, 3 Apr 2005 08:07:43 +0000 (08:07 +0000)
commit00f07d96bdb702f5c6020d1f447d7572dc1aa452
tree1d304b753d205a7b07e5e32e0562a965e1ae648b
parent25af5506aab83668a1d7c0e1efbe88f2b0de3dfb
re PR libfortran/20068 (Backspace problems)

PR libfortran/20068
PR libfortran/20125
PR libfortran/20156
PR libfortran/20471

* io/backspace.c (unformatted_backspace): Fix error in arithmetic.
(st_backspace): When in WRITING mode, we flush and falling back
into READING mode. In all cases, correctly position the stream.

* gfortran.dg/backspace.f: New test.

Co-Authored-By: Francois-Xavier Coudert <coudert@clipper.ens.fr>
From-SVN: r97478
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/backspace.f [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/backspace.c