Hello,   

The attached patch tightens the CPU macro definitions issued
for VxWorks system headers on aarch64 to incorporate the common
VX_CPU_PREFIX facility, as the powperpc 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.

We have been using this in-house successully for
close to a couple of years now, on variations of VxWorks 7.

I'll commit to mainline shortly.

Olivier

--

2021-04-09  Olivier Hainque  <hain...@adacore.com>

gcc/
        * config/aarch64/aarch64-vxworks.h (TARGET_OS_CPP_BUILTINS):
        Use VX_CPU_PREFIX in CPU definitions.

Attachment: 0001-Leverage-VX_CPU_PREFIX-in-aarch64-vxworks.h.patch
Description: Binary data

Reply via email to