From e06f2fbde7d9d8ca3d363035dacbbc4b81e29c9a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 7 Oct 2019 15:29:33 -0400 Subject: Allow verifying _REENT_CHECK macros memory allocation - change sys/reent.h to replace _REENT_CHECK_DEBUG with _REENT_CHECK_VERIFY which when set asserts that any memory allocated is non-NULL and calls __assert_func directly - add new --enable-newlib-reent-check-verify configure option - add support for configure.host to specify default for newlib_reent_check_verify - add _REENT_CHECK_VERIFY macro support to acconfig.h and newlib.hin --- newlib/newlib.hin | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/newlib.hin') diff --git a/newlib/newlib.hin b/newlib/newlib.hin index 18306f293..416d0c629 100644 --- a/newlib/newlib.hin +++ b/newlib/newlib.hin @@ -32,6 +32,9 @@ very restricted storage. */ #undef _WANT_REENT_SMALL +/* Verify _REENT_CHECK macros allocate memory successfully. */ +#undef _REENT_CHECK_VERIFY + /* Multibyte supported */ #undef _MB_CAPABLE -- cgit v1.2.3