target/99660 - missing VX_CPU_PREFIX for vxworksae
authorOlivier Hainque <hainque@adacore.com>
Fri, 19 Mar 2021 15:21:38 +0000 (15:21 +0000)
committerOlivier Hainque <hainque@adacore.com>
Fri, 19 Mar 2021 16:16:39 +0000 (16:16 +0000)
This fixes an oversight which causes make all-gcc
to fail for --target=*vxworksae or vxworksmils, a regression
introduced by the recent VxWorks7 related updates.

Both AE and MILS variants resort to a common config/vxworksae.h,
which misses a definition of VX_CPU_PREFIX expected by port
specific headers.

The change just provides the missing definition.

2021-03-19  Olivier Hainque  <hainque@adacore.com>

gcc/
PR target/99660
* config/vxworksae.h (VX_CPU_PREFIX): Define.

gcc/config/vxworksae.h

index 0f9b553..86d1923 100644 (file)
@@ -64,6 +64,10 @@ along with GCC; see the file COPYING3.  If not see
 /* Both kernels and RTPs have the facilities required by this macro.  */
 #define TARGET_POSIX_IO
 
+/* The AE/653 system headers all predate the introduction of _VX_ prefixes
+   ahead of CPU families of macros.  */
+#define VX_CPU_PREFIX ""
+
 /* A VxWorks 653 implementation of TARGET_OS_CPP_BUILTINS.  */
 #define VXWORKS_OS_CPP_BUILTINS()                                       \
   do                                                                    \