2007-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/32235
* io/transfer.c (st_read): Remove test for end of file condition.
(next_record_r): Add test for end of file condition.
From-SVN: r125606
+2007-06-10 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libgfortran/32235
+ * io/transfer.c (st_read): Remove test for end of file condition.
+ (next_record_r): Add test for end of file condition.
+
2007-06-02 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
break;
}
+
+ if (dtp->u.p.current_unit->flags.access == ACCESS_SEQUENTIAL
+ && !dtp->u.p.namelist_mode
+ && dtp->u.p.current_unit->endfile == NO_ENDFILE
+ && (file_length (dtp->u.p.current_unit->s) ==
+ file_position (dtp->u.p.current_unit->s)))
+ dtp->u.p.current_unit->endfile = AT_ENDFILE;
+
}
switch (dtp->u.p.current_unit->endfile)
{
case NO_ENDFILE:
- if (file_length (dtp->u.p.current_unit->s)
- == file_position (dtp->u.p.current_unit->s))
- dtp->u.p.current_unit->endfile = AT_ENDFILE;
break;
case AT_ENDFILE: