gcc/libgfortran/runtime
Janne Blomqvist d74a8b0579 PR fortran/68401 Improve allocation error message
Improve the error message that is printed when a memory allocation
fails, by including the location, and the size of the allocation that
failed.

Regtested on x86_64-pc-linux-gnu.

gcc/fortran/ChangeLog:

2019-08-17  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/68401
	* trans-decl.c (gfc_build_builtin_function_decls): Replace
	os_error with os_error_at decl.
	* trans.c (trans_runtime_error_vararg): Modify so the error
	function decl is passed directly.
	(gfc_trans_runtime_error): Pass correct error function decl.
	(gfc_trans_runtime_check): Likewise.
	(trans_os_error_at): New function.
	(gfc_call_malloc): Use trans_os_error_at.
	(gfc_allocate_using_malloc): Likewise.
	(gfc_call_realloc): Likewise.
	* trans.h (gfor_fndecl_os_error): Replace with gfor_fndecl_os_error_at.

libgfortran/ChangeLog:

2019-08-17  Janne Blomqvist  <jb@gcc.gnu.org>

	PR fortran/68401
	* gfortran.map: Add GFORTRAN_10 node, add _gfortran_os_error_at
	symbol.
	* libgfortran.h (os_error_at): New prototype.
	* runtime/error.c (os_error_at): New function.

From-SVN: r274599
2019-08-17 08:45:37 +03:00
..
ISO_Fortran_binding.c re PR fortran/89843 (CFI_section delivers incorrect result descriptor) 2019-04-14 18:14:58 +00:00
backtrace.c Update copyright years. 2019-01-01 13:31:55 +01:00
bounds.c Update copyright years. 2019-01-01 13:31:55 +01:00
compile_options.c Update copyright years. 2019-01-01 13:31:55 +01:00
convert_char.c Update copyright years. 2019-01-01 13:31:55 +01:00
environ.c re PR libfortran/91030 (Poor performance of I/O -fconvert=big-endian) 2019-07-21 15:55:49 +00:00
error.c PR fortran/68401 Improve allocation error message 2019-08-17 08:45:37 +03:00
fpu.c Update copyright years. 2019-01-01 13:31:55 +01:00
in_pack_generic.c Update copyright years. 2019-01-01 13:31:55 +01:00
in_unpack_generic.c Update copyright years. 2019-01-01 13:31:55 +01:00
main.c Update copyright years. 2019-01-01 13:31:55 +01:00
memory.c Use __builtin_mul_overflow in xmallocarray 2019-06-14 19:05:54 +03:00
minimal.c Update copyright years. 2019-01-01 13:31:55 +01:00
pause.c Update copyright years. 2019-01-01 13:31:55 +01:00
select.c Update copyright years. 2019-01-01 13:31:55 +01:00
select_inc.c Update copyright years. 2019-01-01 13:31:55 +01:00
stop.c Update copyright years. 2019-01-01 13:31:55 +01:00
string.c Update copyright years. 2019-01-01 13:31:55 +01:00