Commit 071ef254 by Jerome Lambourg Committed by Olivier Hainque

Housekeeping on TARGET_OS_CPP_BUILTINS for arm-vxworks

2019-11-14  Jerome Lambourg  <lambourg@adacore.com>

        * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
        _VX_CPU instead of CPU and handle arm_arch8.

From-SVN: r278252
parent 3004f893
2019-11-14 Jerome Lambourg <lambourg@adacore.com>
* config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
_VX_CPU instead of CPU and handle arm_arch8.
2019-11-14 Doug Rupp <rupp@adacore.com> 2019-11-14 Doug Rupp <rupp@adacore.com>
Olivier Hainque <hainque@adacore.com> Olivier Hainque <hainque@adacore.com>
Jerome Lambourg <lambourg@adacore.com> Jerome Lambourg <lambourg@adacore.com>
...@@ -35,42 +35,44 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -35,42 +35,44 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#endif #endif
#undef TARGET_OS_CPP_BUILTINS #undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do { \ do { \
if (TARGET_BIG_END) \ if (TARGET_BIG_END) \
builtin_define ("ARMEB"); \ builtin_define ("ARMEB"); \
else \ else \
builtin_define ("ARMEL"); \ builtin_define ("ARMEL"); \
\ \
if (arm_arch_xscale) \ if (arm_arch_xscale) \
builtin_define ("CPU=XSCALE"); \ builtin_define ("_VX_CPU=XSCALE"); \
else if (arm_arch7) \ if (arm_arch8) \
{ \ builtin_define ("_VX_CPU=ARMARCH8A"); \
if (!arm_arch_notm) \ else if (arm_arch7) \
builtin_define ("CPU=ARMARCH7M"); \ { \
else if (TARGET_THUMB) \ if (!arm_arch_notm) \
builtin_define ("CPU=ARMARCH7_T2"); \ builtin_define ("_VX_CPU=ARMARCH7M"); \
else \ else if (TARGET_THUMB) \
builtin_define ("CPU=ARMARCH7"); \ builtin_define ("_VX_CPU=ARMARCH7_T2"); \
} \ else \
else if (arm_arch6) \ builtin_define ("_VX_CPU=ARMARCH7"); \
{ \ } \
if (TARGET_THUMB) \ else if (arm_arch6) \
builtin_define ("CPU=ARMARCH6_T"); \ { \
else \ if (TARGET_THUMB) \
builtin_define ("CPU=ARMARCH6"); \ builtin_define ("_VX_CPU=ARMARCH6_T"); \
} \ else \
builtin_define ("_VX_CPU=ARMARCH6"); \
} \
else if (arm_arch5t) \ else if (arm_arch5t) \
builtin_define ("CPU=ARMARCH5_T"); \ builtin_define ("_VX_CPU=ARMARCH5_T"); \
else if (arm_arch4) \ else if (arm_arch4) \
{ \ { \
if (TARGET_THUMB) \ if (TARGET_THUMB) \
builtin_define ("CPU=ARMARCH4_T"); \ builtin_define ("_VX_CPU=ARMARCH4_T"); \
else \ else \
builtin_define ("CPU=ARMARCH4"); \ builtin_define ("_VX_CPU=ARMARCH4"); \
} \ } \
VXWORKS_OS_CPP_BUILTINS (); \ VXWORKS_OS_CPP_BUILTINS (); \
MAYBE_TARGET_BPABI_CPP_BUILTINS (); \ MAYBE_TARGET_BPABI_CPP_BUILTINS (); \
} while (0) } while (0)
#undef SUBTARGET_OVERRIDE_OPTIONS #undef SUBTARGET_OVERRIDE_OPTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment