gcc/libgfortran/io
Jerry DeLisle 6f34d6e078 re PR fortran/26766 ([F2003] Recursive I/O still (again) broken)
2006-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26766
	* io/io.h: Add bit to identify associated unit as internal.
	* io/unit.c (get_external_unit): Renamed the find_unit_1 function to
	reflect the external unit functionality vs internal unit.
	(get_internal_unit): New function to allocate and initialize an internal
	unit structure.
	(get_unit): Use get_internal_unit and get_external_unit.
	(is_internal_unit): Revised to use new bit added in io.h.
	* io/transfer.c (data_transfer_init): Fix line width.
	(st_read_done): Free memory allocated for internal unit.
	(st_write_done): Add test to only flush and truncate when not an
	internal unit.  Free memory allocated for internal unit.

From-SVN: r112914
2006-04-13 06:24:58 +00:00
..
close.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
file_pos.c re PR libfortran/26880 (Can't read after non-advancing write with rewind) 2006-03-27 05:59:37 +00:00
format.c re PR libfortran/21303 (L edit descriptor without a width) 2006-02-19 21:31:02 +00:00
inquire.c re PR fortran/23815 (Add -byteswapio flag) 2005-12-10 20:01:56 +00:00
io.h re PR fortran/26766 ([F2003] Recursive I/O still (again) broken) 2006-04-13 06:24:58 +00:00
list_read.c re PR fortran/26554 ([gfortran] incorrect behaviour when reading a logical variable from a string) 2006-03-05 17:54:07 +00:00
lock.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
open.c [multiple changes] 2006-03-22 19:09:11 +00:00
read.c re PR libfortran/26661 (Sequential formatted read goes too far) 2006-03-26 02:15:44 +00:00
size_from_kind.c random.c: Include config.h 2005-11-27 17:09:40 -05:00
transfer.c re PR fortran/26766 ([F2003] Recursive I/O still (again) broken) 2006-04-13 06:24:58 +00:00
unit.c re PR fortran/26766 ([F2003] Recursive I/O still (again) broken) 2006-04-13 06:24:58 +00:00
unix.c re PR libfortran/26499 (gfortran - End of File incorrectly positioned after binary I/O.) 2006-03-10 03:15:36 +00:00
unix.h re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
write.c re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90)) 2006-04-10 14:02:55 +02:00