From a9cfb33b6c82a99e852a06de2127ffaea85bc212 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 31 Aug 2018 17:44:33 +0100 Subject: Add --disable-newlib-fno-builtin to allow compilation without -fno-builtin for smaller and faster code. --- newlib/configure.host | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'newlib/configure.host') 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. -- cgit v1.2.3