This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortran] PR59419 Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx'
- From: Tobias Burnus <burnus at net-b dot de>
- To: Jerry DeLisle <jvdelisle at charter dot net>, gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 16 Dec 2013 08:07:17 +0100
- Subject: Re: [patch, libgfortran] PR59419 Failing OPEN with FILE='xxx' and IOSTAT creates the file 'xxx'
- Authentication-results: sourceware.org; auth=none
- References: <52AE29AF dot 1090106 at charter dot net>
Am 15.12.2013 23:14, schrieb Jerry DeLisle:
The patch also fixes a few other places I found after auditing all calls to
generate error in libgfortran/io.
I will conjure up a test case for this.
Thanks for both.
I have regression tested on X86-64 Linux. OK for trunk?
OK.
Tobias
2013-12-15 Jerry DeLisle <jvdelisle@gcc.gnu>
PR libfortran/59419
* io/file_pos.c (st_rewind): Do proper return after
generate_error.
* io/open.c (edit_modes): Move action code inside block that
checks for library ok. (new_unit): Do cleanup after error.
(st_open): Do proper return after error.
* io/transfer.c (data_transfer_init): Likewise.