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:
authorAlexey Lapshin <alexey.lapshin@espressif.com>2023-08-17 01:05:53 +0300
committerJeff Johnston <jjohnstn@redhat.com>2023-08-18 01:14:15 +0300
commit7ba103eb1a95703c7803e4ca48e6ba5c8e1f3d56 (patch)
tree36b6a578131e28363728a2ed685d66348c747d78 /newlib/configure.host
parent65d34484e9097fd9036dd577028423355cb5f5bc (diff)
newlib: add Xtensa port
Diffstat (limited to 'newlib/configure.host')
-rw-r--r--newlib/configure.host13
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host
index 5f427526d..386183466 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -365,6 +365,13 @@ case "${host_cpu}" in
newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED"
newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED"
;;
+ xtensa)
+ libm_machine_dir=xtensa
+ machine_dir=xtensa
+ newlib_cflags="${newlib_cflags} -mlongcalls"
+ default_newlib_atexit_dynamic_alloc="no"
+ have_init_fini=no
+ ;;
z8k)
machine_dir=z8k
;;
@@ -569,6 +576,9 @@ case "${host}" in
w65-*-*)
sys_dir=w65
;;
+ xtensa*-*-*)
+ sys_dir=xtensa
+ ;;
z8k-*-coff)
sys_dir=z8ksim
;;
@@ -861,6 +871,9 @@ newlib_cflags="${newlib_cflags} -DCLOCK_PROVIDED -DMALLOC_PROVIDED -DEXIT_PROVID
xstormy16-*-*)
syscall_dir=syscalls
;;
+ xtensa*-*-* | xtensa*-*)
+ syscall_dir=syscalls
+ ;;
z8k-*-*)
syscall_dir=syscalls
;;