Fix the VX_CPU selection for -mcpu=xscale on arm-vxworks
authorOlivier Hainque <hainque@adacore.com>
Thu, 5 Mar 2020 15:02:12 +0000 (15:02 +0000)
committerOlivier Hainque <hainque@adacore.com>
Wed, 14 Oct 2020 18:13:54 +0000 (18:13 +0000)
This fixlet makes sure -mcpu=xscale selects the correct VX_CPU.

2020-10-14  Olivier Hainque  <hainque@adacore.com>

gcc/
* config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
the VX_CPU selection for -mcpu=xscale on arm-vxworks.

gcc/config/arm/vxworks.h

index 2ebfce8a2e0c9caa018e208323cd81da7dd4f5b5..487ec0fdbb992e74a91b4c86c6f349008bfa2a45 100644 (file)
@@ -44,7 +44,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
                                                        \
     if (arm_arch_xscale)                               \
       builtin_define ("_VX_CPU=XSCALE");               \
-    if (arm_arch8)                                     \
+    else if (arm_arch8)                                        \
       builtin_define ("_VX_CPU=ARMARCH8A");            \
     else if (arm_arch7)                                        \
       {                                                        \