diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2019-10-07 22:29:33 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2019-10-07 22:36:03 +0300 |
commit | e06f2fbde7d9d8ca3d363035dacbbc4b81e29c9a (patch) | |
tree | df1831d7edb2fe3f0273f19faa38dfdf78584b50 /newlib/newlib.hin | |
parent | 175b215e054a8cee50d91317f3af22a3b2c3d320 (diff) |
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
Diffstat (limited to 'newlib/newlib.hin')
-rw-r--r-- | newlib/newlib.hin | 3 |
1 files changed, 3 insertions, 0 deletions
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 |