gcc/libgfortran/io
Thomas Koenig d8163f5cc0 re PR libfortran/32858 (printf-capabilities for runtime_error())
2007-07-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/32858
	PR libfortran/30814
	* configure.ac:  Added checks for presence of stdio.h and
	stdarg.h.  Test presence of vsnprintf().
	* configure: Regenerated.
	* config.h.in:  Regenerated.
	* libgfortran.h:  Include <stdio.h>.  Add printf attribute to
	prototype of runtime_error.  Remove prototype for st_sprintf.
	Add prototype for st_vprintf.
	* runtime/main.c (store_exec_path):  Replace st_sprintf by sprintf.
	* runtime/error.c (st_sprintf):  Remove.
	(runtime_error):  Rewrite as a variadic function.  Call
	st_vprintf().
	* intrinsics/pack_generic.c:  Output extents of LHS and RHS for
	bounds error.
	* io/open.c (new_unit):  Replace st_sprintf by sprintf.
	* io/list_read.c (convert_integer):  Likewise.
	(parse_repeat):  Likewise.
	(read_logical):  Likewise.
	(read_character):  Likewise.
	(parse_real):  Likewise.
	(read_real):  Likewise.
	(check_type):  Likewise.
	(nml_parse_qualifyer):  Likewise.
	(nml_read_obj):  Likewise.
	(nml_get_ojb_data):  Likewise.
	* io/unix.c (init_error_stream):  Remove.
	(tempfile):  Replace st_sprintf by sprintf.
	(st_vprintf):  New function.
	(st_printf):  Rewrite to call st_vprintf.
	* io/transfer.c (require_type):  Replace st_sprintf by sprintf.
	* io/format.c (format_error):  Likewise.
	* io/write.c (nml_write_obj):  Likewise.

2007-07-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR libfortran/32858
	PR libfortran/30814
	* gfortran.dg/pack_bounds_1.f90:  Adjust to new error message.

From-SVN: r127049
2007-07-29 20:01:45 +00:00
..
close.c re PR fortran/28335 (flush() / write() statement on closed units - error?) 2006-07-31 00:15:08 +00:00
file_pos.c re PR libfortran/31532 (INQUIRE(...,POSITION=...) not standard conforming) 2007-04-28 02:03:21 +00:00
format.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
inquire.c re PR libfortran/31532 (INQUIRE(...,POSITION=...) not standard conforming) 2007-04-28 02:03:21 +00:00
intrinsics.c re PR target/22539 (Internal compiler error with maximum sized array) 2007-05-04 14:02:18 -04:00
io.h re PR libfortran/31607 (CALL SYSTEM produces garbled output when writing to a buffered file) 2007-05-07 19:48:40 +00:00
list_read.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
lock.c re PR fortran/31201 (Too large unit number generates wrong code) 2007-05-06 22:28:31 +00:00
open.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
read.c read.c (convert_real): Generate error only on EINVAL. 2007-07-23 02:42:05 +00:00
size_from_kind.c
transfer.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
unit.c [multiple changes] 2007-07-02 23:29:27 +00:00
unix.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
write.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00