re PR libfortran/35293 (truncation errors with gfortran.dg/streamio_11.f90, 3, 4...
authorHans-Peter Nilsson <hp@axis.com>
Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Wed, 5 Mar 2008 01:50:33 +0000 (01:50 +0000)
commit25abf44844f7b9ebeb7e7e3f21b05adb903850a1
tree80aeb189f4a89b4797ea2eb3dd5f0f5781ac9461
parent07c40d0bb9fffa145c083c67f282a6ec7d99cbe6
re PR libfortran/35293 (truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.)

PR libfortran/35293
* io/unix.c (fd_truncate): Fold s->special_file case into
success case of ftruncate/chsize call instead of the failure case.
Make failure case actually return failure.  Properly update stream
pointers on failure.  Call runtime_error for targets without
neither ftruncate nor chsize where such a call would be needed.

From-SVN: r132888
libgfortran/ChangeLog
libgfortran/io/unix.c