diff options
author | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-31 00:15:08 +0000 |
---|---|---|
committer | jvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-31 00:15:08 +0000 |
commit | 39d37bf0d95bda851c7e4b92772e8489719e4ea6 (patch) | |
tree | 8abc831485b80cd7da34db76760dc345a164c2e4 /libgfortran | |
parent | 8c21c758524ea1939da6597242dd08f104096d1a (diff) | |
download | gcc-39d37bf0d95bda851c7e4b92772e8489719e4ea6.tar.gz |
2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/28335
* close.c (st_close): Revert previous patch and add comment.
* file_position.c (st_flush): Revert previous patch and add comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/close.c | 5 | ||||
-rw-r--r-- | libgfortran/io/file_pos.c | 4 |
3 files changed, 9 insertions, 6 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 2e904d7589a..cb4b0e39bb4 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2006-07-30 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/28335 + * close.c (st_close): Revert previous patch and add comment. + * file_position.c (st_flush): Revert previous patch and add comment. + 2006-07-30 Francois-Xavier Coudert <coudert@clipper.ens.fr> * intrinsics/date_and_time.c: Add functions for GMTIME and LTIME. diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c index b6766ff37d5..66ea6c3fb69 100644 --- a/libgfortran/io/close.c +++ b/libgfortran/io/close.c @@ -102,8 +102,7 @@ st_close (st_parameter_close *clp) unlink (path); #endif } - else - generate_error (&clp->common, ERROR_BAD_OPTION, - "Can't find specified UNIT in CLOSE"); + + /* CLOSE on unconnected unit is legal and a no-op: F95 std., 9.3.5. */ library_end (); } diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c index 7a71ecef63b..c306d6e8d73 100644 --- a/libgfortran/io/file_pos.c +++ b/libgfortran/io/file_pos.c @@ -340,9 +340,7 @@ st_flush (st_parameter_filepos *fpp) flush (u->s); unlock_unit (u); } - else - generate_error (&fpp->common, ERROR_BAD_OPTION, - "Can't find specified UNIT in FLUSH"); + /* CLOSE on unconnected unit is legal and a no-op: F95 std., 9.3.5. */ library_end (); } |