summaryrefslogtreecommitdiff
path: root/libgfortran/io/file_pos.c
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-31 00:15:08 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-31 00:15:08 +0000
commit39d37bf0d95bda851c7e4b92772e8489719e4ea6 (patch)
tree8abc831485b80cd7da34db76760dc345a164c2e4 /libgfortran/io/file_pos.c
parent8c21c758524ea1939da6597242dd08f104096d1a (diff)
downloadgcc-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/io/file_pos.c')
-rw-r--r--libgfortran/io/file_pos.c4
1 files changed, 1 insertions, 3 deletions
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 ();
}