aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorJerry DeLisle <jvdelisle@gcc.gnu.org>2007-08-29 02:26:01 +0000
committerJerry DeLisle <jvdelisle@gcc.gnu.org>2007-08-29 02:26:01 +0000
commit5d75fb81c78587a26eea95e482c18418389d19b9 (patch)
tree53e4dfc90beaa42d5a8e5de9662f46ff97e2ceaa /libgfortran
parentd05fd136542ae8bd03f46f853f545ce34dd1dfda (diff)
downloadgcc-5d75fb81c78587a26eea95e482c18418389d19b9.zip
gcc-5d75fb81c78587a26eea95e482c18418389d19b9.tar.gz
gcc-5d75fb81c78587a26eea95e482c18418389d19b9.tar.bz2
re PR libfortran/33055 (Runtime error in INQUIRE unit existance with -fdefault-integer-8)
2007-08-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/33055 Revert previous patch. From-SVN: r127877
Diffstat (limited to 'libgfortran')
-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 547b831..b1f4a14 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);