gcc/libgfortran/io
Jerry DeLisle dcfddbd49c re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement)
2009-06-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/40008
	* libgfortran.h: Define IOPARM_OPEN_HAS_NEWUNIT.
	* io/open.c (st_open): Don't error on negative unit number if NEWUNIT
	was specified. If NEWUNIT is specified, call new function to get the
	unique unit number and assign it.
	* io/io.h (st_parameter_open): Add pointer to newunit.  Add prototype for
	next_available_newunit. Add prototype for new function,
	get_unique_unit_number.
	* io/unit.c: Declare next_available_newunit. Define the first newunit
	number. (init_units): Initialize next_available_unit.
	(get_unique_unit_number): New function. Fix whitespace and comments.
	* io/transfer.c (data_transfer_init): Update error message to not be
	specific to OPEN statements.

From-SVN: r148253
2009-06-07 19:00:47 +00:00
..
close.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
fbuf.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
file_pos.c Fix PR libfortran/39667 2009-04-30 18:12:37 +03:00
format.c re PR libfortran/40330 (incorrect IO) 2009-06-04 00:07:19 +03:00
inquire.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
intrinsics.c Fix PR libfortran/39667 2009-04-30 18:12:37 +03:00
io.h re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
list_read.c re PR libfortran/40334 (changed BACKSPACE behaviour at end of file.) 2009-06-07 17:40:24 +00:00
lock.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
open.c re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
read.c re PR libfortran/39665 (Fortran IO using unaligned accesses to read/write doubles.) 2009-04-09 20:44:23 +03:00
size_from_kind.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
transfer.c re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
unit.c re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
unix.c io.h (is_preconnected): Remove prototype. 2009-04-17 22:52:02 +03:00
write.c write.c (itoa): Rename back to gfc_itoa. 2009-04-15 04:05:02 +00:00
write_float.def re PR libfortran/37754 (READ I/O Performance regression from 4.3 to 4.4/4.5) 2009-05-20 00:16:38 +00:00