[Bug libfortran/14565] [gfortran] formatted write to an un-opened unit causes a segv
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Apr 1 01:13:00 GMT 2004
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-01 01:13 -------
Subject: Bug 14565
CVSROOT: /cvs/gcc
Module name: gcc
Branch: tree-ssa-20020619-branch
Changes by: pbrook@gcc.gnu.org 2004-04-01 01:13:33
Modified files:
gcc/testsuite : ChangeLog.tree-ssa
libgfortran : ChangeLog
libgfortran/io : io.h open.c rewind.c transfer.c
Log message:
PR gfortran/14565
* io/open.c (new_unit),
* io/io.h : new_unit is now visible
* io/transfer.c (data_transfer_init): open unit if no OPEN statement.
* io/transfer.c (data_transfer_init): remove compile warnings.
* io/rewind.c (st_rewind): ftruncate if writing.
testsuite
* gfortran.fortran-torture/execute/unopened_unit_1.f90: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.203&r2=1.1.2.204
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.35&r2=1.1.2.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/io.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.6&r2=1.1.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/open.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.5&r2=1.1.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/rewind.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.2&r2=1.1.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/transfer.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.9&r2=1.1.2.10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14565
More information about the Gcc-bugs
mailing list