This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cr16, lm32: error: Unable to determine type definition of intptr_t/int32_t


On 2016-03-01 04:48, Nick Clifton wrote:
#else
/* Handle targets with known broken GCCs, otherwise give up */
# if defined (__CR16__)
#  define _INTPTR_EQ_SHORT
# elif defined (__LM32__)
#  define _INT32_EQ_LONG
# else
#  error "Unable to determine type definition of intptr_t"
# endif
#endif

That seems fair.

Yaakov - What are the configurations of cr16 and lm32 that do not define __INTPTR_TYPE__ ?

It appears all configurations of these targets are affected.

cr16-elf default is:

#define __CHAR16_TYPE__ short unsigned int
#define __CHAR32_TYPE__ unsigned int
#define __INTMAX_TYPE__ long long int
#define __PTRDIFF_TYPE__ long int
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_INT__ 2
#define __SIZEOF_LONG_DOUBLE__ 8
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_LONG__ 4
#define __SIZEOF_POINTER__ 4
#define __SIZEOF_PTRDIFF_T__ 4
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_SIZE_T__ 4
#define __SIZEOF_WCHAR_T__ 2
#define __SIZEOF_WINT_T__ 2
#define __SIZE_TYPE__ long unsigned int
#define __UINTMAX_TYPE__ long long unsigned int
#define __WCHAR_TYPE__ short unsigned int
#define __WINT_TYPE__ unsigned int

cr16-elf -mint32 is similar except for:

#define __SIZEOF_INT__ 4
#define __SIZEOF_WINT_T__ 4

cr16-elf -fPIC has no affect on either mode.

lm32-elf default is as follows:

#define __CHAR16_TYPE__ short unsigned int
#define __CHAR32_TYPE__ unsigned int
#define __INTMAX_TYPE__ long long int
#define __PTRDIFF_TYPE__ int
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG_DOUBLE__ 8
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_LONG__ 4
#define __SIZEOF_POINTER__ 4
#define __SIZEOF_PTRDIFF_T__ 4
#define __SIZEOF_SHORT__ 2
#define __SIZEOF_SIZE_T__ 4
#define __SIZEOF_WCHAR_T__ 4
#define __SIZEOF_WINT_T__ 4
#define __SIZE_TYPE__ unsigned int
#define __UINTMAX_TYPE__ long long unsigned int
#define __WCHAR_TYPE__ int
#define __WINT_TYPE__ unsigned int

None of the other configurations change these values.

--
Yaakov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]