2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
* libc/include/sys/config.h: Change setting of INT_MAX and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__, __H8300S__. Also consolidate flag settings for these platforms.
This commit is contained in:
parent
d1bdb89056
commit
7da92d1527
@ -1,3 +1,10 @@
|
|||||||
|
2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
|
* libc/include/sys/config.h: Change setting of INT_MAX
|
||||||
|
and UINT_MAX, to use __INT_MAX__ for __H8300__, __H8300H__,
|
||||||
|
__H8300S__. Also consolidate flag settings for these
|
||||||
|
platforms.
|
||||||
|
|
||||||
2002-12-10 Joel Sherrill <joel@OARcorp.com>
|
2002-12-10 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* libc/include/machine/setjmp.h: Make sure _JBLEN is defined
|
* libc/include/machine/setjmp.h: Make sure _JBLEN is defined
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <machine/ieeefp.h> /* floating point macros */
|
#include <machine/ieeefp.h> /* floating point macros */
|
||||||
|
|
||||||
/* exceptions first */
|
/* exceptions first */
|
||||||
#if defined(__H8300__) || defined(__H8500__) || defined (__H8300H__) || defined(__W65__) || defined (__H8300S__)
|
#if defined(__H8500__) || defined(__W65__)
|
||||||
#define __SMALL_BITFIELDS
|
#define __SMALL_BITFIELDS
|
||||||
/* ??? This conditional is true for the h8500 and the w65, defining H8300
|
/* ??? This conditional is true for the h8500 and the w65, defining H8300
|
||||||
in those cases probably isn't the right thing to do. */
|
in those cases probably isn't the right thing to do. */
|
||||||
@ -12,7 +12,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* 16 bit integer machines */
|
/* 16 bit integer machines */
|
||||||
#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8300__) || defined(__H8500__) || defined(__W65__) || defined (__H8300H__) || defined (__H8300S__) || defined (__mn10200__) || defined (__AVR__)
|
#if defined(__Z8001__) || defined(__Z8002__) || defined(__H8500__) || defined(__W65__) || defined (__mn10200__) || defined (__AVR__)
|
||||||
|
|
||||||
#undef INT_MAX
|
#undef INT_MAX
|
||||||
#undef UINT_MAX
|
#undef UINT_MAX
|
||||||
@ -20,6 +20,15 @@
|
|||||||
#define UINT_MAX 65535
|
#define UINT_MAX 65535
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined (__H8300__) || defined (__H8300H__) || defined(__H8300S__)
|
||||||
|
#define __SMALL_BITFIELDS
|
||||||
|
#define H8300 1
|
||||||
|
#undef INT_MAX
|
||||||
|
#undef UINT_MAX
|
||||||
|
#define INT_MAX __INT_MAX__
|
||||||
|
#define UINT_MAX (__INT_MAX__ * 2U + 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __W65__
|
#ifdef __W65__
|
||||||
#define __SMALL_BITFIELDS
|
#define __SMALL_BITFIELDS
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user