* [patch] Fix the VX_CPU selection for -mcpu=xscale on arm-vxworks
@ 2020-09-24 17:34 Olivier Hainque
0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2020-09-24 17:34 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
This fixlet makes sure -mcpu=xscale selects the correct VX_CPU.
Fixes a number of tests for arm-vxworks.
Committing to mainline shortly.
Olivier
2020-09-24 Olivier Hainque <hainque@adacore.com>
* config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
the VX_CPU selection for -mcpu=xscale on arm-vxworks.
[-- Attachment #2: 0009-Fix-thinko-in-TARGET_OS_CPP_BUILTINS-for-arm-vxworks.diff --]
[-- Type: application/octet-stream, Size: 504 bytes --]
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.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-24 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-24 17:34 [patch] Fix the VX_CPU selection for -mcpu=xscale on arm-vxworks Olivier Hainque
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).