diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-06-27 19:51:33 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-06-27 19:51:33 +0000 |
commit | 4634da64f74f2c3d589e432ad40de2d9167b738c (patch) | |
tree | 81a559efb71aaa36a2f6a5caedf16e1b8466d22f /newlib | |
parent | 666b9d7bb8d9ca3f704de67f43300d15b0fe7398 (diff) | |
download | newlib-4634da64f74f2c3d589e432ad40de2d9167b738c.zip newlib-4634da64f74f2c3d589e432ad40de2d9167b738c.tar.gz newlib-4634da64f74f2c3d589e432ad40de2d9167b738c.tar.bz2 |
Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl>
* configure.host: Add support for AVR target.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/sys/config.h: Likewise.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/configure.host | 8 | ||||
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 6 | ||||
-rw-r--r-- | newlib/libc/include/sys/config.h | 9 |
4 files changed, 27 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2d28ac4..f24d7dd 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +Tue Jun 27 15:49:00 2000 Marek Michalkiewicz <marekm@linux.org.pl> + + * configure.host: Add support for AVR target. + * libc/include/machine/ieeefp.h: Likewise. + * libc/include/sys/config.h: Likewise. + Thu Jun 22 18:35:00 2000 Ranjith Kumaran <ranjith@cygnus.com> * README: Newlib 1.8.2 must be built in a separate directory diff --git a/newlib/configure.host b/newlib/configure.host index bfb252b..99913d7 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -45,7 +45,7 @@ case "${target_optspace}:${host}" in yes:*) newlib_cflags="${newlib_cflags} -Os" ;; - :m32r-* | :d10v-* | :d30v-*) + :m32r-* | :d10v-* | :d30v-* | :avr-*) newlib_cflags="${newlib_cflags} -Os" ;; no:* | :*) @@ -68,6 +68,9 @@ case "${host_cpu}" in arm) machine_dir=arm ;; + avr*) + newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues" + ;; d10v*) machine_dir=d10v ;; @@ -338,6 +341,9 @@ case "${host}" in # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR" newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR" ;; + avr*) + newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES" + ;; d10v*) newlib_cflags="${newlib_cflags} -DSMALL_MEMORY" syscall_dir=syscalls diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index c5a0a32..34510ca 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -152,6 +152,12 @@ #endif #endif +#ifdef __AVR__ +#define __IEEE_LITTLE_ENDIAN +#define __SMALL_BITFIELDS +#define _DOUBLE_IS_32BITS +#endif + #ifndef __IEEE_BIG_ENDIAN #ifndef __IEEE_LITTLE_ENDIAN #error Endianess not declared!! diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 8420a8d..b0957ea 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -25,7 +25,7 @@ #endif /* 16 bit integer machines */ -#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) || defined (__H8300S__) || defined (__mn10200__) +#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) || defined (__H8300S__) || defined (__mn10200__) || defined (__AVR__) #undef INT_MAX #undef UINT_MAX @@ -73,6 +73,13 @@ #define __IEEE_LITTLE_ENDIAN #endif +#ifdef __AVR__ +#define _DOUBLE_IS_32BITS +#define __SMALL_BITFIELDS +#define __IEEE_LITTLE_ENDIAN +#define _POINTER_INT short +#endif + #ifdef __TIC80__ #define __IEEE_LITTLE_ENDIAN #endif |