This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] set SPU to not use atexit malloc by default
- From: Patrick Mansfield <patmans at us dot ibm dot com>
- To: newlib at sourceware dot org
- Date: Tue, 20 Feb 2007 12:18:50 -0800
- Subject: [PATCH] set SPU to not use atexit malloc by default
Change SPU to not use dynamic alloc for atexit by default, so we save
about 8000 bytes for some programs.
Index: my-base-quilt/newlib/configure.host
===================================================================
--- my-base-quilt.orig/newlib/configure.host
+++ my-base-quilt/newlib/configure.host
@@ -443,6 +443,7 @@ case "${host}" in
;;
spu-*-*)
default_newlib_io_long_long="yes"
+ default_newlib_atexit_dynamic_alloc="no"
;;
strongarm-*-*)
sys_dir=arm
Index: my-base-quilt/newlib/ChangeLog
===================================================================
--- my-base-quilt.orig/newlib/ChangeLog
+++ my-base-quilt/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-19 Patrick Mansfield <patmans@us.ibm.com>
+ * configure.host: build SPU with
+ default_newlib_atexit_dynamic_alloc="no"
+
2007-02-08 Corinna Vinschen <corinna@vinschen.de>
* libc/include/sys/features.h: Add _POSIX_SHARED_MEMORY_OBJECTS for