* 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.
This commit is contained in:
Mark Mitchell
2006-03-21 00:57:34 +00:00
parent c1494e03a2
commit 3078fb4f36
7 changed files with 146 additions and 80 deletions

View File

@ -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
@BOTTOM@