From a703e0f2ee6fd5c100b6a2071bef61a0c31c2504 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 24 Jul 2002 15:44:24 +0000 Subject: 2002-07-24 Stephane Carrez * 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. --- newlib/libc/include/sys/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'newlib/libc/include/sys') diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index 883993ffb..9596d5558 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -33,6 +33,14 @@ #define _POINTER_INT short #endif +#if defined(__mc68hc11__) || defined(__mc68hc12__) || defined(__mc68hc1x__) +#undef INT_MAX +#undef UINT_MAX +#define INT_MAX __INT_MAX__ +#define UINT_MAX (__INT_MAX__ * 2U + 1) +#define _POINTER_INT short +#endif + #ifdef ___AM29K__ #define _FLOAT_RET double #endif -- cgit v1.2.3