Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Beniston <jon@beniston.com>2018-08-31 19:44:33 +0300
committerJeff Johnston <jjohnstn@redhat.com>2018-08-31 22:40:42 +0300
commita9cfb33b6c82a99e852a06de2127ffaea85bc212 (patch)
treeff82a3e0b59d37c6384357410587e74254152a48 /newlib/configure.host
parentfc3a8ecca5f4924079668f9f9615b4619e5dc810 (diff)
Add --disable-newlib-fno-builtin to allow compilation without -fno-builtin for smaller and faster code.newlib-snapshot-20180831
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host14
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index bfa51669d..7e9336a0a 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -28,6 +28,7 @@
# newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "")
# newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "")
# newlib_global_stdio_streams --enable-global-stdio-streams ("yes", "no, "")
+# newlib_fno_builtin --disable-newlib-fno-builtin ("yes", "no, "")
# It sets the following shell variables:
# newlib_cflags Special CFLAGS to use when building
@@ -91,6 +92,19 @@ case "${target_optspace}:${host}" in
;;
esac
+case "${newlib_fno_builtin}:${host}" in
+ yes:*)
+ newlib_cflags="${newlib_cflags} -fno-builtin"
+ ;;
+ no:*)
+ newlib_cflags="${newlib_cflags}"
+ ;;
+ *:*)
+ # For now, all targets default to using -fno-builtin until tested without
+ newlib_cflags="${newlib_cflags} -fno-builtin"
+ ;;
+esac
+
# Get the source directories to use for the CPU type.
# machine_dir should supply CPU dependent routines, such as setjmp.
# newlib_cflags is passed to gcc when compiling.