summaryrefslogtreecommitdiff
path: root/libgfortran/io/inquire.c
diff options
context:
space:
mode:
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-29 02:26:01 +0000
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-29 02:26:01 +0000
commitc4815e861d656064fa742493bfddb9a1fb61eb02 (patch)
tree53e4dfc90beaa42d5a8e5de9662f46ff97e2ceaa /libgfortran/io/inquire.c
parent3fdeca5d79c2896dad59f0731fcfc9cd323b123a (diff)
downloadgcc-c4815e861d656064fa742493bfddb9a1fb61eb02.tar.gz
2007-08-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33055 Revert previous patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127877 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/inquire.c')
-rw-r--r--libgfortran/io/inquire.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/libgfortran/io/inquire.c b/libgfortran/io/inquire.c
index 547b831dac4..b1f4a14f6c4 100644
--- a/libgfortran/io/inquire.c
+++ b/libgfortran/io/inquire.c
@@ -47,17 +47,7 @@ inquire_via_unit (st_parameter_inquire *iqp, gfc_unit * u)
GFC_INTEGER_4 cf = iqp->common.flags;
if ((cf & IOPARM_INQUIRE_HAS_EXIST) != 0)
- {
- *iqp->exist = (iqp->common.unit >= 0
- && iqp->common.unit <= GFC_INTEGER_4_HUGE);
-
- if ((cf & IOPARM_INQUIRE_HAS_FILE) == 0)
- {
- if (!(*iqp->exist))
- *iqp->common.iostat = ERROR_BAD_UNIT;
- *iqp->exist = *iqp->exist && (*iqp->common.iostat != ERROR_BAD_UNIT);
- }
- }
+ *iqp->exist = iqp->common.unit >= 0;
if ((cf & IOPARM_INQUIRE_HAS_OPENED) != 0)
*iqp->opened = (u != NULL);