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
This commit is contained in:
Jerry DeLisle 2007-09-07 20:16:05 +00:00
parent 0ab29e91aa
commit 3a6666054e
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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
{