gcc/libgfortran/io
Jerry DeLisle 54ffdb125c re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays)
2006-04-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/20257
	* io/io.h: Add prototypes for get_internal_unit and free_internal_unit.
	* io/unit.c (get_internal_unit): Initialize unit number, not zero.
	(free_internal_unit): New function to consolidate freeing memory.
	(get_unit): Initialize internal_unit_desc to NULL when unit is
	external.
	* io/unix.c (mem_close): Check for not NULL before freeing memory.
	* io/transfer.c (read_block): Reset bytes_left and skip error if unit
	is preconnected and default record length is reached.
	(read_block_direct): Ditto.
	(write_block): Ditto.
	(write_buf): Ditto.
	(data_transfer_init): Only flush if not internal unit.
	(finalize_transfer): Ditto and delete code to free memory used by
	internal units.
	(st_read_done): Use new function - free_internal_unit.
	(st_write_done): Use new function - free_internal unit.

From-SVN: r113190
2006-04-23 02:04:58 +00:00
..
close.c
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
io.h re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays) 2006-04-23 02:04:58 +00:00
list_read.c re PR fortran/27138 (gfortran: read(*,*) myInt advances only one character on error) 2006-04-17 02:33:51 +00:00
lock.c
open.c
read.c
size_from_kind.c
transfer.c re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays) 2006-04-23 02:04:58 +00:00
unit.c re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays) 2006-04-23 02:04:58 +00:00
unix.c re PR libfortran/20257 (Fortran runtime error: End of record occurs when writing large arrays) 2006-04-23 02:04:58 +00:00
unix.h
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