From 2fca6a981790b8445e91db9b955909ed902d94a6 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Thu, 5 Mar 2020 15:02:12 +0000 Subject: [PATCH] Fix the VX_CPU selection for -mcpu=xscale on arm-vxworks This fixlet makes sure -mcpu=xscale selects the correct VX_CPU. 2020-10-14 Olivier Hainque 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/arm/vxworks.h b/gcc/config/arm/vxworks.h index 2ebfce8a2e0..487ec0fdbb9 100644 --- a/gcc/config/arm/vxworks.h +++ b/gcc/config/arm/vxworks.h @@ -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) \ { \ -- 2.30.2