aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2021-04-09 15:46:42 +0000
committerOlivier Hainque <hainque@adacore.com>2021-12-09 16:55:27 +0000
commit1486e4bd015423a70eb6fad1f42cb0a381967022 (patch)
tree3ea1e722e693f989c3198d8e8f8d21f42ed4068c /gcc
parent6dfb1059b31576930427648e03d9d06e6d68bbf0 (diff)
downloadgcc-1486e4bd015423a70eb6fad1f42cb0a381967022.zip
gcc-1486e4bd015423a70eb6fad1f42cb0a381967022.tar.gz
gcc-1486e4bd015423a70eb6fad1f42cb0a381967022.tar.bz2
Leverage VX_CPU_PREFIX in aarch64-vxworks.h
This change tightens the CPU macro definitions issued for VxWorks system headers on aarch64 to incorporate the common VX_CPU_PREFIX facility, as the powerpc port does. The net effect for current configurations is the addition of an actual "_VX_" prefix to the references to architecture representative values. The absence of this prefix is most often compensated for in system headers, but not always (when going through particular #include paths), and this caused a couple of spurious test failures. 2021-12-09 Olivier Hainque <hainque@adacore.com> gcc/ * config/aarch64/aarch64-vxworks.h (TARGET_OS_CPP_BUILTINS): Use VX_CPU_PREFIX in CPU definitions.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/aarch64/aarch64-vxworks.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64-vxworks.h b/gcc/config/aarch64/aarch64-vxworks.h
index d5bdb4e..a821bde 100644
--- a/gcc/config/aarch64/aarch64-vxworks.h
+++ b/gcc/config/aarch64/aarch64-vxworks.h
@@ -50,7 +50,8 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("ARMEB"); \
else \
builtin_define ("ARMEL"); \
- builtin_define ("_VX_CPU=ARMARCH8A"); \
+ builtin_define \
+ (VX_CPU_PREFIX "CPU=" VX_CPU_PREFIX "ARMARCH8A"); \
VXWORKS_OS_CPP_BUILTINS (); \
} while (0)