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.
This commit is contained in:
Jeff Johnston
2000-06-27 19:51:33 +00:00
parent 666b9d7bb8
commit 4634da64f7
4 changed files with 27 additions and 2 deletions

View File

@ -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!!

View File

@ -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