Fri Jan 25 08:31:43 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.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/arm/arm.h

cvs diff -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/arm/arm.h (expand / switch to unified diff)

--- src/external/gpl3/gcc/dist/gcc/config/arm/arm.h 2011/07/01 01:23:23 1.2
+++ src/external/gpl3/gcc/dist/gcc/config/arm/arm.h 2013/01/25 08:31:43 1.3
@@ -84,27 +84,32 @@ extern char arm_arch_name[]; @@ -84,27 +84,32 @@ extern char arm_arch_name[];
84 builtin_define ("__THUMB_INTERWORK__"); \ 84 builtin_define ("__THUMB_INTERWORK__"); \
85 \ 85 \
86 builtin_assert ("cpu=arm"); \ 86 builtin_assert ("cpu=arm"); \
87 builtin_assert ("machine=arm"); \ 87 builtin_assert ("machine=arm"); \
88 \ 88 \
89 builtin_define (arm_arch_name); \ 89 builtin_define (arm_arch_name); \
90 if (arm_arch_cirrus) \ 90 if (arm_arch_cirrus) \
91 builtin_define ("__MAVERICK__"); \ 91 builtin_define ("__MAVERICK__"); \
92 if (arm_arch_xscale) \ 92 if (arm_arch_xscale) \
93 builtin_define ("__XSCALE__"); \ 93 builtin_define ("__XSCALE__"); \
94 if (arm_arch_iwmmxt) \ 94 if (arm_arch_iwmmxt) \
95 builtin_define ("__IWMMXT__"); \ 95 builtin_define ("__IWMMXT__"); \
96 if (TARGET_AAPCS_BASED) \ 96 if (TARGET_AAPCS_BASED) \
97 builtin_define ("__ARM_EABI__"); \ 97 { \
 98 builtin_define ("__ARM_EABI__"); \
 99 builtin_define ("__ARM_PCS"); \
 100 if (TARGET_HARD_FLOAT && TARGET_VFP) \
 101 builtin_define ("__ARM_PCS_VFP"); \
 102 } \
98 } while (0) 103 } while (0)
99 104
100/* The various ARM cores. */ 105/* The various ARM cores. */
101enum processor_type 106enum processor_type
102{ 107{
103#define ARM_CORE(NAME, IDENT, ARCH, FLAGS, COSTS) \ 108#define ARM_CORE(NAME, IDENT, ARCH, FLAGS, COSTS) \
104 IDENT, 109 IDENT,
105#include "arm-cores.def" 110#include "arm-cores.def"
106#undef ARM_CORE 111#undef ARM_CORE
107 /* Used to indicate that no processor has been specified. */ 112 /* Used to indicate that no processor has been specified. */
108 arm_none 113 arm_none
109}; 114};
110 115