aboutsummaryrefslogtreecommitdiff
path: root/newlib/configure.host
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-07-24 15:44:24 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-07-24 15:44:24 +0000
commita703e0f2ee6fd5c100b6a2071bef61a0c31c2504 (patch)
tree83a122d1db6832c186b1160eb0433847ea16b534 /newlib/configure.host
parentbf47141f3699bf64978f36fb49c0d66ebf2a8f6f (diff)
downloadnewlib-a703e0f2ee6fd5c100b6a2071bef61a0c31c2504.zip
newlib-a703e0f2ee6fd5c100b6a2071bef61a0c31c2504.tar.gz
newlib-a703e0f2ee6fd5c100b6a2071bef61a0c31c2504.tar.bz2
2002-07-24 Stephane Carrez <stcarrez@nerim.fr>
* configure.host: Recognize m6811-elf and m6812-elf targets. * libc/include/machine/setjmp.h (_JBLEN): Define for 68hc11/68hc12. * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Define for 68HC11. (_DOUBLE_IS_32BITS): Define when compiling with -fshort-double. * libc/include/sys/config.h (INT_MAX, UINT_MAX): Define according to __INT_MAX__. (_POINTER_INT): Define to short. * libc/machine/m68hc11/Makefile.am: New file. * libc/machine/m68hc11/Makefile.in: New file. * libc/machine/m68hc11/configure.in: New file. * libc/machine/m68hc11/configure: New file. * libc/machine/m68hc11/aclocal.m4: New file. * libc/machine/m68hc11/setjmp.S: New file.
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 0cec5e8..47808e2 100644
--- a/newlib/configure.host
+++ b/newlib/configure.host
@@ -127,6 +127,13 @@ case "${host_cpu}" in
m32r*)
machine_dir=m32r
;;
+
+ m68hc11|m6811|m68hc12|m6812)
+ machine_dir=m68hc11
+ newlib_cflags="-DPREFER_SIZE_OVER_SPEED -Os -mrelax"
+ CFLAGS="-g -Os"
+ ;;
+
m68*)
machine_dir=m68k
newlib_cflags="${newlib_cflags} -DCOMPACT_CTYPE"
@@ -324,6 +331,9 @@ case "${host}" in
##newlib_cflags="${newlib_cflags} -I`newlib-flags --kernel-dir`/include"
##newlib_cflags="${newlib_cflags} -idirafter ${gcc_dir}include"
;;
+ m68hc11-*-*|m6811-*-*|m6812-*-*|m68hc12-*-*)
+ ;;
+
m68k-sun-sunos*)
unix_dir=unix
;;
@@ -482,6 +492,9 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -msdata=sdata"
syscall_dir=syscalls
;;
+ m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
+ newlib_cflags="${newlib_cflags} -DNO_EXEC -DABORT_PROVIDED -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
+ ;;
mcore-*-*)
newlib_cflags="${newlib_cflags}"
syscall_dir=syscalls