diff options
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index f1e130939..f19fa1580 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-* ) + :m32r-* | :d10v-* | :d30v-* | :avr-* | :m32c-* | :msp430*-* ) newlib_cflags="${newlib_cflags} -Os" ;; no:* | :*) @@ -224,9 +224,18 @@ case "${host_cpu}" in moxie) machine_dir=moxie ;; + msp430*) + newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY" + newlib_cflags="${newlib_cflags} -ffunction-sections -fdata-sections " + newlib_cflags="${newlib_cflags} -mOs " + machine_dir=msp430 + ;; mt*) machine_dir=mt ;; + nios2*) + machine_dir=nios2 + ;; or16) ;; or32) @@ -476,6 +485,9 @@ case "${host}" in moxie*) sys_dir= ;; + nios2*) + sys_dir= + ;; powerpcle-*-pe) posix_dir=posix ;; @@ -703,6 +715,10 @@ case "${host}" in syscall_dir=syscalls default_newlib_io_long_long="yes" ;; + nios2*) + syscall_dir= + newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_SYSTEM -DMISSING_SYSCALL_NAMES" + ;; powerpc*-*-eabialtivec*) default_newlib_io_long_long="yes" newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" |