Make GCC define __ARM_PCS and __ARM_PCS_VFP as defined by the ARM C Language Extentions (clang already defines them): __ARM_PCS is defined to 1 if the default procedure calling standard for the translation unit conforms to the "base PCS" defined in [AAPCS]. __ARM_PCS_VFP is defined to 1 if the default is to pass floating-point parameters in hardware floating-point registers using the "VFP variant PCS" defined in [AAPCS].diff -r1.1.1.1 -r1.2 src/gnu/dist/gcc4/gcc/config/arm/arm.h
(matt)
--- src/gnu/dist/gcc4/gcc/config/arm/Attic/arm.h 2006/04/20 10:19:17 1.1.1.1
+++ src/gnu/dist/gcc4/gcc/config/arm/Attic/arm.h 2013/01/25 08:32:04 1.2
@@ -77,7 +77,12 @@
if (arm_arch_iwmmxt) \
builtin_define ("__IWMMXT__"); \
if (TARGET_AAPCS_BASED) \
- builtin_define ("__ARM_EABI__"); \
+ { \
+ builtin_define ("__ARM_EABI__"); \
+ builtin_define ("__ARM_PCS"); \
+ if (TARGET_HARD_FLOAT && TARGET_VFP) \
+ builtin_define ("__ARM_PCS_VFP"); \
+ } \
} while (0)
/* The various ARM cores. */