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:
authorJeff Johnston <jjohnstn@redhat.com>2013-07-09 23:06:47 +0400
committerJeff Johnston <jjohnstn@redhat.com>2013-07-09 23:06:47 +0400
commitdc0cb474bba11051859968574d344cccf3fdb0d7 (patch)
tree72e922564cd3ac1d3d1c3e5a3cdf0a2d4d02e51e /newlib/configure.host
parent9b51cd8c6b9cdd067d9648a7ab952884019c56a5 (diff)
2013-07-09 Sabrina Ni <sabrina@andestech.com>
* configure.host (machine_dir, syscall_dir, newlib_cflags): Add settings for nds32*. * libc/include/machine/ieeefp.h (IEEE_BIG_ENDIAN, IEEE_LITTLE_ENDIAN): Ditto. * libc/include/machine/setjmp.h (JBLEN): Ditto. * libc/machine/configure.in: Add nds32 subdir. * libc/machine/configure: Regenerated. * libc/machine/nds32/Makefile.am: New. * libc/machine/nds32/Makefile.in: New (autogenerated). * libc/machine/nds32/aclocal.m4: New (autogenerated). * libc/machine/nds32/configure.in: New. * libc/machine/nds32/configure: New (autogenerated). * libc/machine/nds32/setjmp.S: New.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host11
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"