2005-01-22 Thomas Koenig <Thomas.Koenig@online.de>
commit2d6ba0f9d34196be6726f55eb24cad2e5a877727
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jan 2005 19:49:18 +0000 (22 19:49 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Jan 2005 19:49:18 +0000 (22 19:49 +0000)
treefda79f894c069363a2ace1fa2cd36b81203001de
parentfee61f85116d77cb0f58034ea182d64735fc9bbf
2005-01-22  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/18982
* io/unix.c (regular_file):  No need to change flags->action
if an error occurs.  Document this.
No need to call stat() for STATUS_OLD, open() will
fail anyway.
For ACTION_UNSPECIFIED, try open for read-write, then for
read-only if open fails with EACCES, then for write-only
if that fails with EACCES again.
* io/unix.c (open_external): Document changed behavior of
regular_file.
testsuite/
* gfortran.dg/open_new.f90: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94076 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/open_new.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/unix.c