aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2006-07-26 01:40:29 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2006-07-26 01:40:29 +0000
commitca8d5bc6c6b64b464396a9caa9a7ddfcff122bcb (patch)
treea150d0afe386d0dc4db831914233d337476522e6 /libgfortran
parent9116046d960f1bc5a844a62575d93b481898eb70 (diff)
downloadgcc-ca8d5bc6c6b64b464396a9caa9a7ddfcff122bcb.zip
gcc-ca8d5bc6c6b64b464396a9caa9a7ddfcff122bcb.tar.gz
gcc-ca8d5bc6c6b64b464396a9caa9a7ddfcff122bcb.tar.bz2
2006-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/258335 * close.c (st_close): Add error when UNIT does not exist. * file_position.c (st_flush): Add error when UNIT does not exist. From-SVN: r115749
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/io/close.c4
-rw-r--r--libgfortran/io/file_pos.c3
3 files changed, 12 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index c285565..dd38a89 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libgfortran/258335
+ * close.c (st_close): Add error when UNIT does not exist.
+ * file_position.c (st_flush): Add error when UNIT does not exist.
+
2006-07-25 Paolo Bonzini <bonzini@gnu.org>
PR build/26188
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c
index 9dcc1a3..b6766ff 100644
--- a/libgfortran/io/close.c
+++ b/libgfortran/io/close.c
@@ -102,6 +102,8 @@ st_close (st_parameter_close *clp)
unlink (path);
#endif
}
-
+ else
+ generate_error (&clp->common, ERROR_BAD_OPTION,
+ "Can't find specified UNIT in CLOSE");
library_end ();
}
diff --git a/libgfortran/io/file_pos.c b/libgfortran/io/file_pos.c
index e9697bb..7a71ece 100644
--- a/libgfortran/io/file_pos.c
+++ b/libgfortran/io/file_pos.c
@@ -340,6 +340,9 @@ 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");
library_end ();
}