diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-08-10 20:35:13 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-08-10 20:35:13 +0000 |
commit | 56448afa06abf287d8bfbd45b1a040ab32d54bb9 (patch) | |
tree | 573b9d596cdd6584d768de46684c217dfa8f22c5 /newlib/libc/include/machine | |
parent | 250996a91b6d027962e9b14f035258b1782f5494 (diff) | |
download | newlib-56448afa06abf287d8bfbd45b1a040ab32d54bb9.zip newlib-56448afa06abf287d8bfbd45b1a040ab32d54bb9.tar.gz newlib-56448afa06abf287d8bfbd45b1a040ab32d54bb9.tar.bz2 |
2005-08-10 DJ Delorie <dj@redhat.com>
* configure.host: Add m32c support.
* libc/include/machine/ieeefp.h: Likewise.
* libc/include/machine/setjmp.h: Likewise.
* libc/include/sys/config.h: Likewise.
* libc/machine/m32c: New directory, Renesas R8C/M16C/M32C support.
* libc/machine/m32c/aclocal.m4: New file.
* libc/machine/m32c/configure: Ditto.
* libc/machine/m32c/configure.in: Ditto.
* libc/machine/m32c/Makefile.am: Ditto.
* libc/machine/m32c/Makefile.in: Ditto.
* libc/machine/m32c/setjmp.S: Ditto.
Diffstat (limited to 'newlib/libc/include/machine')
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 5 | ||||
-rw-r--r-- | newlib/libc/include/machine/setjmp.h | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 333603c..9da9133 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -269,6 +269,11 @@ #endif /* __ARMEL__ */ #endif /* __MAVERICK__ */ +#ifdef __m32c__ +#define __IEEE_LITTLE_ENDIAN +#define __SMALL_BITFIELDS +#endif + #ifdef __CRIS__ #define __IEEE_LITTLE_ENDIAN #endif diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h index efc11f0..f38123a 100644 --- a/newlib/libc/include/machine/setjmp.h +++ b/newlib/libc/include/machine/setjmp.h @@ -213,6 +213,15 @@ _BEGIN_STD_C #define _JBLEN 18 #endif +#ifdef __m32c__ +#if defined(__r8c_cpu__) || defined(__m16c_cpu__) +#define _JBLEN (22/2) +#else +#define _JBLEN (34/2) +#endif +#define _JBTYPE unsigned short +#endif /* __m32c__ */ + #ifdef _JBLEN #ifdef _JBTYPE typedef _JBTYPE jmp_buf[_JBLEN]; |