gcc/libgfortran/runtime
Janne Blomqvist 84d38abbc9 Use __builtin_mul_overflow in xmallocarray
As GCC now provides builtins for doing integer overflow checking, lets
use it when checking for overflow in xmallocarray.

Regtested on x86_64-pc-linux-gnu.

libgfortran/ChangeLog:

2019-06-14  Janne Blomqvist  <jb@gcc.gnu.org>

	* runtime/memory.c (SIZE_MAX):Remove macro definition.
	(xmallocarray): Use __builtin_mul_overflow.

From-SVN: r272295
2019-06-14 19:05:54 +03: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 Update copyright years. 2019-01-01 13:31:55 +01:00
error.c Update copyright years. 2019-01-01 13:31:55 +01: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
ISO_Fortran_binding.c re PR fortran/89843 (CFI_section delivers incorrect result descriptor) 2019-04-14 18:14:58 +00: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_inc.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
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