This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] FT32: reduce newlib code size
- From: James Bowman <james dot bowman at ftdichip dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 22 Sep 2015 00:54:28 +0000
- Subject: [PATCH] FT32: reduce newlib code size
- Authentication-results: sourceware.org; auth=none
This patch fixes the FT32 build options to minimize the size of newlib.
Please can someone review it, and if appropriate approve it for commit?
Thanks very much. ChangeLog entry:
newlib/ChangeLog:
2015-09-21 James Bowman <james.bowman@ftdichip.com>
* configure.host (ft32): minimise newlib code size
diff --git a/newlib/configure.host b/newlib/configure.host
index 1315d09..9bc7b90 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -143,12 +143,8 @@ case "${host_cpu}" in
;;
ft32*)
machine_dir=ft32
- target_optspace=yes
- # newlib_io_float=no
- default_newlib_io_long_long="yes"
- newlib_cflags="-DPREFER_SIZE_OVER_SPEED -Os"
- CFLAGS="-Os"
- CCASFLAGS="-Os"
+ default_newlib_io_long_long="no"
+ newlib_cflags="-DPREFER_SIZE_OVER_SPEED -fomit-frame-pointer"
;;
h8300)
machine_dir=h8300