changeset: 47:2f5b31d7c462 user: admin@nptl.bridge.intra date: Sat May 12 18:27:04 2007 +0200 summary: Use __ARM_EABI__ instead of __CONFIG_ARM_EABI__. Add consistency check diff -r c8c27a1a4c8d -r 2f5b31d7c462 libc/sysdeps/linux/arm/bits/huge_val.h --- a/libc/sysdeps/linux/arm/bits/huge_val.h Sat May 12 15:53:49 2007 +0200 +++ b/libc/sysdeps/linux/arm/bits/huge_val.h Sat May 12 18:27:04 2007 +0200 @@ -32,7 +32,7 @@ # define HUGE_VAL (__extension__ 0x1.0p2047) #elif defined __GNUC__ -#ifndef __CONFIG_ARM_EABI__ +#ifndef __ARM_EABI__ # define HUGE_VAL \ (__extension__ \ ((union { unsigned __l __attribute__((__mode__(__DI__))); double __d; }) \ @@ -50,7 +50,7 @@ typedef union { unsigned char __c[8]; double __d; } __huge_val_t; -#ifndef __CONFIG_ARM_EABI__ +#ifndef __ARM_EABI__ # if __BYTE_ORDER == __BIG_ENDIAN # define __HUGE_VAL_bytes { 0, 0, 0, 0, 0x7f, 0xf0, 0, 0 } # endif diff -r c8c27a1a4c8d -r 2f5b31d7c462 libc/sysdeps/linux/arm/bits/uClibc_arch_features.h --- a/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h Sat May 12 15:53:49 2007 +0200 +++ b/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h Sat May 12 18:27:04 2007 +0200 @@ -38,4 +38,11 @@ /* define if target supports IEEE signed zero floats */ #define __UCLIBC_HAVE_SIGNED_ZERO__ +/* Consistency check */ +#if defined __CONFIG_ARM_EABI__ && !defined __ARM_EABI__ +# error Your toolchain does not support EABI +#elif defined __ARM_EABI__ && !defined __CONFIG_ARM_EABI__ +# error Your toolchain was built for EABI, but you have chosen OABI +#endif + #endif /* _BITS_UCLIBC_ARCH_FEATURES_H */