Fri Jan 25 08:32:04 2013 UTC ()
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].


(matt)
diff -r1.1.1.1 -r1.2 src/gnu/dist/gcc4/gcc/config/arm/arm.h

cvs diff -r1.1.1.1 -r1.2 src/gnu/dist/gcc4/gcc/config/arm/Attic/arm.h (expand / switch to unified diff)

--- 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
@@ -67,27 +67,32 @@ extern char arm_arch_name[]; @@ -67,27 +67,32 @@ extern char arm_arch_name[];
67 builtin_define ("__THUMB_INTERWORK__"); \ 67 builtin_define ("__THUMB_INTERWORK__"); \
68 \ 68 \
69 builtin_assert ("cpu=arm"); \ 69 builtin_assert ("cpu=arm"); \
70 builtin_assert ("machine=arm"); \ 70 builtin_assert ("machine=arm"); \
71 \ 71 \
72 builtin_define (arm_arch_name); \ 72 builtin_define (arm_arch_name); \
73 if (arm_arch_cirrus) \ 73 if (arm_arch_cirrus) \
74 builtin_define ("__MAVERICK__"); \ 74 builtin_define ("__MAVERICK__"); \
75 if (arm_arch_xscale) \ 75 if (arm_arch_xscale) \
76 builtin_define ("__XSCALE__"); \ 76 builtin_define ("__XSCALE__"); \
77 if (arm_arch_iwmmxt) \ 77 if (arm_arch_iwmmxt) \
78 builtin_define ("__IWMMXT__"); \ 78 builtin_define ("__IWMMXT__"); \
79 if (TARGET_AAPCS_BASED) \ 79 if (TARGET_AAPCS_BASED) \
80 builtin_define ("__ARM_EABI__"); \ 80 { \
 81 builtin_define ("__ARM_EABI__"); \
 82 builtin_define ("__ARM_PCS"); \
 83 if (TARGET_HARD_FLOAT && TARGET_VFP) \
 84 builtin_define ("__ARM_PCS_VFP"); \
 85 } \
81 } while (0) 86 } while (0)
82 87
83/* The various ARM cores. */ 88/* The various ARM cores. */
84enum processor_type 89enum processor_type
85{ 90{
86#define ARM_CORE(NAME, IDENT, ARCH, FLAGS, COSTS) \ 91#define ARM_CORE(NAME, IDENT, ARCH, FLAGS, COSTS) \
87 IDENT, 92 IDENT,
88#include "arm-cores.def" 93#include "arm-cores.def"
89#undef ARM_CORE 94#undef ARM_CORE
90 /* Used to indicate that no processor has been specified. */ 95 /* Used to indicate that no processor has been specified. */
91 arm_none 96 arm_none
92}; 97};
93 98