diff options
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index f19fa1580..d577ce972 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -79,7 +79,7 @@ case "${target_optspace}:${host}" in yes:*) newlib_cflags="${newlib_cflags} -Os" ;; - :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* ) + :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* | :nds32* ) newlib_cflags="${newlib_cflags} -Os" ;; no:* | :*) @@ -233,6 +233,12 @@ case "${host_cpu}" in mt*) machine_dir=mt ;; + nds32*) + machine_dir=nds32 + newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED " + newlib_cflags="${newlib_cflags} -DSMALL_MEMORY " + newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections" + ;; nios2*) machine_dir=nios2 ;; @@ -719,6 +725,9 @@ case "${host}" in syscall_dir= newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES" ;; + nds32*) + syscall_dir=syscalls + ;; powerpc*-*-eabialtivec*) default_newlib_io_long_long="yes" newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" |