gcc/libgfortran/intrinsics
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
..
abort.c libgfortran ChangeLog: 2006-05-27 10:11:29 +03:00
access.c * intrinsics/access.c (access_func): Remove export directive. 2006-08-05 13:37:52 +00:00
args.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
associated.c associated.c: Check for associated(NULL,NULL). 2006-12-17 19:00:46 +01:00
c99_functions.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
chdir.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
chmod.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
clock.c intrinsic.c (add_functions): Add INT2, SHORT, INT8, LONG, LSTAT, MCLOCK and MCLOCK8 intrinsic functions. 2006-07-26 11:58:48 +00:00
cpu_time.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
cshift0.c re PR libfortran/31286 (cshift uses uninitialized variables) 2007-04-18 08:47:28 +00:00
ctime.c intrinsic.c (add_functions): Add ctime and fdate intrinsics. 2005-11-06 10:17:04 +00:00
date_and_time.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
dprod_r8.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
env.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
eoshift0.c re PR libfortran/31295 (Uninitialized variable in libgfortran's _gfortran_eoshift0_4) 2007-05-22 18:19:09 +02:00
eoshift2.c re PR libfortran/31295 (Uninitialized variable in libgfortran's _gfortran_eoshift0_4) 2007-05-22 18:19:09 +02:00
etime.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
exit.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
f2c_specifics.F90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
fnum.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
gerror.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
getXid.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
getcwd.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
getlog.c re PR libfortran/31299 (Use getpwuid(geteuid()) instead of getlogin() for GETLOG()) 2007-04-25 07:36:20 +00:00
hostnm.c re PR libfortran/23803 ([mingw32] getlog malfunction) 2005-09-25 21:02:17 +00:00
ierrno.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
ishftc.c re PR fortran/31964 ([4.2, 4.1 only]ishftc fails with certain thrid argument) 2007-05-19 01:04:03 +00:00
iso_c_binding.c re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-07-23 08:03:33 +02:00
iso_c_binding.h re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-07-23 08:03:33 +02:00
iso_c_generated_procs.c re PR fortran/32627 ([ISO Bind C] Accept c_f_pointer for TYPE) 2007-07-21 23:45:44 +00:00
kill.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
link.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
malloc.c check.c (gfc_check_malloc, [...]): New functions. 2005-10-30 12:17:48 +00:00
move_alloc.c re PR fortran/30723 (Freeing memory doesn't need to call a library function) 2007-05-14 19:33:57 +00:00
mvbits.c re PR fortran/32357 (MVBITS gives wrong-code on big-endian with -fdefault-integer-8) 2007-07-14 23:11:04 +00:00
pack_generic.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
perror.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
rand.c re PR libfortran/28452 (__gfortran_random_r10 not found) 2006-08-01 17:15:04 +00:00
random.c re PR libfortran/28452 (__gfortran_random_r10 not found) 2006-08-01 17:15:04 +00:00
rename.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
reshape_generic.c re PR fortran/31196 ([4.1 only] wrong code generated with RESHAPE/TRANSPOSE) 2007-03-25 08:29:10 +00:00
reshape_packed.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
selected_int_kind.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
selected_real_kind.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
signal.c re PR fortran/30947 (intrinsic: ALARM) 2007-03-08 16:46:16 -05:00
size.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
sleep.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
spread_generic.c re PR libfortran/27895 (problem with RESHAPE and zero-sized arrays) 2006-10-19 21:48:50 +00:00
stat.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
string_intrinsics.c re PR fortran/31922 ([4.2 only] Accessing uninitialized variable for print *, trim(blank_string)) 2007-05-16 00:37:55 +00:00
symlnk.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
system.c re PR libfortran/31607 (CALL SYSTEM produces garbled output when writing to a buffered file) 2007-05-07 19:48:40 +00:00
system_clock.c cpu_time.c: Don't include headers already included by libgfortran.h. 2007-04-06 16:47:23 +00:00
time.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
transpose_generic.c in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
umask.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
unlink.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
unpack_generic.c re PR fortran/32217 (segfaults (at runtime) on UNPACK with zero-sized arrays) 2007-07-08 22:20:04 +00:00