gcc/libgfortran
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
..
caf
config
generated
ieee
intrinsics PR fortran/91414 Bugfix for previous commit 2019-08-13 12:04:18 +03:00
io PR 53796 Make inquire(file=, recl=) conform to F2018 2019-08-07 10:34:10 +03:00
m4
runtime PR fortran/68401 Improve allocation error message 2019-08-17 08:45:37 +03:00
acinclude.m4
aclocal.m4
c99_protos.h
ChangeLog PR fortran/68401 Improve allocation error message 2019-08-17 08:45:37 +03:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
config.h.in
configure Enable full GFortran library for AMD GCN 2019-06-25 11:41:38 +00:00
configure.ac Enable full GFortran library for AMD GCN 2019-06-25 11:41:38 +00:00
configure.host
gfortran.map PR fortran/68401 Improve allocation error message 2019-08-17 08:45:37 +03:00
ISO_Fortran_binding.h
kinds-override.h
libgfortran.h PR fortran/68401 Improve allocation error message 2019-08-17 08:45:37 +03:00
libgfortran.spec.in
libtool-version
Makefile.am
Makefile.in
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh