Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Make GCC define __ARM_PCS and __ARM_PCS_VFP as defined by th...



details:   https://anonhg.NetBSD.org/src/rev/c3b31fadb871
branches:  trunk
changeset: 784318:c3b31fadb871
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 25 08:31:43 2013 +0000

description:
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].

diffstat:

 external/gpl3/gcc/dist/gcc/config/arm/arm.h |  7 ++++++-
 gnu/dist/gcc4/gcc/config/arm/arm.h          |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 7306792ce17a -r c3b31fadb871 external/gpl3/gcc/dist/gcc/config/arm/arm.h
--- a/external/gpl3/gcc/dist/gcc/config/arm/arm.h       Fri Jan 25 02:01:10 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/arm/arm.h       Fri Jan 25 08:31:43 2013 +0000
@@ -94,7 +94,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.  */
diff -r 7306792ce17a -r c3b31fadb871 gnu/dist/gcc4/gcc/config/arm/arm.h
--- a/gnu/dist/gcc4/gcc/config/arm/arm.h        Fri Jan 25 02:01:10 2013 +0000
+++ b/gnu/dist/gcc4/gcc/config/arm/arm.h        Fri Jan 25 08:31:43 2013 +0000
@@ -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.  */



Home | Main Index | Thread Index | Old Index