diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2010-12-02 19:30:47 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2010-12-02 19:30:47 +0000 |
commit | 874a87f8cd93365c3bea0e6e5d14c265e9bb01f6 (patch) | |
tree | e545a2e22fe9f6a7b528800c4e9c50f62bda8423 /newlib/libc/include/sys | |
parent | bdcc0b84ed75787006794fb6c98f8f0b1a78a67f (diff) | |
download | cygnal-874a87f8cd93365c3bea0e6e5d14c265e9bb01f6.tar.gz cygnal-874a87f8cd93365c3bea0e6e5d14c265e9bb01f6.tar.bz2 cygnal-874a87f8cd93365c3bea0e6e5d14c265e9bb01f6.zip |
2010-12-02 Jayant Sonar jayant.sonar@kpitcummins.com
Kaushik Phatak kaushik.phatak@kpitcummins.com
* configure.host: Add CR16 support.
* libc/include/machine/ieeefp.h: Ditto.
* libc/include/machine/setjmp.h: Ditto.
* libc/include/sys/config.h: Ditto.
* libc/machine/configure.in: Ditto
* libc/machine/configure: Regenerated
* libc/machine/cr16/aclocal.m4: New.
* libc/machine/cr16/configure.in: New
* libc/machine/cr16/configure: New
* libc/machine/cr16/getenv.c: New
* libc/machine/cr16/Makefile.am: New
* libc/machine/cr16/Makefile.in: New
* libc/machine/cr16/setjmp.S: New
* libc/machine/cr16/sys/asm.h: New
* libc/machine/cr16/sys/libh.h: New
* libc/machine/cr16/sys/syscall.h: New
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r-- | newlib/libc/include/sys/config.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 71f9d281d..49c81f915 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -30,6 +30,22 @@ #define UINT_MAX (__INT_MAX__ * 2U + 1) #endif +#if (defined(__CR16__) || defined(__CR16C__) ||defined(__CR16CP__)) +#ifndef __INT32__ +#define __SMALL_BITFIELDS +#undef INT_MAX +#undef UINT_MAX +#define INT_MAX 32767 +#define UINT_MAX (__INT_MAX__ * 2U + 1) +#else /* INT32 */ +#undef INT_MAX +#undef UINT_MAX +#define INT_MAX 2147483647 +#define UINT_MAX (__INT_MAX__ * 2U + 1) +#endif /* INT32 */ + +#endif /* CR16C */ + #if defined (__xc16x__) || defined (__xc16xL__) || defined (__xc16xS__) #define __SMALL_BITFIELDS #endif |