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:
authorKito Cheng <kito@andestech.com>2017-07-27 11:44:22 +0300
committerJeff Johnston <jjohnstn@redhat.com>2017-08-17 01:00:58 +0300
commit363dbb9e44d0101f29ec34cadd001893daab3fc6 (patch)
tree8c39ab14c5b090653f88bd4624b593ef4819e059 /newlib/configure.host
parent7e69f983a46dfb9ae9c09e30fc20ad6a91f0ddc4 (diff)
Add RISC-V port for newlib
Contributor list: - Andrew Waterman <andrew@sifive.com> - Palmer Dabbelt <palmer@dabbelt.com> - Kito Cheng <kito.cheng@gmail.com> - Scott Beamer <sbeamer@eecs.berkeley.edu>
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index d47120089..3d967a11b 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -255,6 +255,12 @@ case "${host_cpu}" in
powerpc*)
machine_dir=powerpc
;;
+ riscv*)
+ libm_machine_dir=riscv
+ machine_dir=riscv
+ newlib_cflags="${newlib_cflags}"
+ default_newlib_atexit_dynamic_alloc="no"
+ ;;
rl78)
machine_dir=rl78
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -DSMALL_MEMORY"
@@ -806,6 +812,9 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL -D_NO_POSIX_SPAWN"
syscall_dir=syscalls
;;
+ riscv*-*-*)
+ syscall_dir=syscalls
+ ;;
sh*-*-*)
default_newlib_io_long_long="yes"
syscall_dir=syscalls