From 3078fb4f360e44b436bafcd9e7c51f26792e34b4 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Tue, 21 Mar 2006 00:57:34 +0000 Subject: * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef. * configure.in (--disable-newlib-atexit-dynamic-alloc): New option. * configure: Regenerated. * newlib.hin: Regenerated. * libc/stdlib/__atexit.c (__register_exitproc): Don't call malloc if _ATEXIT_DYNAMIC_ALLOC is undefined. * libc/stdlib/__call_atexit.c (__call_exitprocs): Don't call free if _ATEXIT_DYNAMIC_ALLOC is undefined. --- newlib/newlib.hin | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/newlib.hin') diff --git a/newlib/newlib.hin b/newlib/newlib.hin index b716ab5b2..207192897 100644 --- a/newlib/newlib.hin +++ b/newlib/newlib.hin @@ -34,6 +34,10 @@ * sections. */ #undef HAVE_INITFINI_ARRAY +/* True if atexit() may dynamically allocate space for cleanup + functions. */ +#undef _ATEXIT_DYNAMIC_ALLOC + /* Define if the compiler supports aliasing an array to an address. */ #undef _HAVE_ARRAY_ALIASING /* -- cgit v1.2.3