gcc/libgfortran
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
..
config
generated
intrinsics re PR fortran/40019 (LEADZ and TRAILZ give wrong results) 2009-05-29 23:27:54 +02:00
io re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
m4
runtime Revert part of r147883 that breaks ABI 2009-05-27 18:22:34 +03:00
acinclude.m4
aclocal.m4
c99_protos.h
ChangeLog re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
config.h.in Fix PR40190; use localtime_r, gmtime_r, add fallback implementations 2009-05-29 23:56:20 +03:00
configure Fix PR40190; use localtime_r, gmtime_r, add fallback implementations 2009-05-29 23:56:20 +03:00
configure.ac Fix PR40190; use localtime_r, gmtime_r, add fallback implementations 2009-05-29 23:56:20 +03:00
configure.host
fmain.c re PR fortran/39178 (Generate main() rather than using a main in libgfortran/fmain.c) 2009-05-26 23:19:57 +02:00
gfortran.map re PR fortran/40019 (LEADZ and TRAILZ give wrong results) 2009-05-29 23:27:54 +02:00
libgfortran.h re PR fortran/40008 (F2008: Add NEWUNIT= for OPEN statement) 2009-06-07 19:00:47 +00:00
libtool-version
Makefile.am re PR fortran/40019 (LEADZ and TRAILZ give wrong results) 2009-05-29 23:27:54 +02:00
Makefile.in re PR fortran/40019 (LEADZ and TRAILZ give wrong results) 2009-05-29 23:27:54 +02:00
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh