Extract VX_CPU_PREFIX up into config/vxworks.h
Move VX_CPU_PREFIX to a place where it can be reused by multiple target ports. 2020-10-21 Olivier Hainque <hainque@adacore.com> gcc/ * config/vxworks.h (VX_CPU_PREFIX): #define here. * config/rs6000/vxworks.h: Remove #definition.
This commit is contained in:
parent
7fdedf8a8e
commit
f6b710fc6f
@ -97,18 +97,6 @@ along with GCC; see the file COPYING3. If not see
|
|||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
/* Specific CPU macro definitions expected by the system headers,
|
|
||||||
inferred from -mcpu requests by the user. Different versions of
|
|
||||||
VxWorks expect different forms of macros, such as
|
|
||||||
|
|
||||||
-D_VX_CPU=_VX_PPC403 on Vx7 and some variants of Vx6,
|
|
||||||
-DCPU=PPC403 on all Vx6 and earlier. */
|
|
||||||
|
|
||||||
#if TARGET_VXWORKS7
|
|
||||||
#define VX_CPU_PREFIX "_VX_"
|
|
||||||
#else
|
|
||||||
#define VX_CPU_PREFIX ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define VX_CPUDEF(CPUID) \
|
#define VX_CPUDEF(CPUID) \
|
||||||
":-D" VX_CPU_PREFIX "CPU=" VX_CPU_PREFIX #CPUID
|
":-D" VX_CPU_PREFIX "CPU=" VX_CPU_PREFIX #CPUID
|
||||||
|
@ -265,6 +265,18 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
|
|||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
|
/* For specific CPU macro definitions expected by the system headers,
|
||||||
|
different versions of VxWorks expect different forms of macros,
|
||||||
|
such as "_VX_CPU=..." on Vx7 and some variants of Vx6, or "CPU=..."
|
||||||
|
on all Vx6 and earlier. Setup a common prefix macro here, that
|
||||||
|
arch specific ports can reuse. */
|
||||||
|
|
||||||
|
#if TARGET_VXWORKS7
|
||||||
|
#define VX_CPU_PREFIX "_VX_"
|
||||||
|
#else
|
||||||
|
#define VX_CPU_PREFIX ""
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VXWORKS_KIND VXWORKS_KIND_NORMAL
|
#define VXWORKS_KIND VXWORKS_KIND_NORMAL
|
||||||
|
|
||||||
/* The diab linker does not handle .gnu_attribute sections. */
|
/* The diab linker does not handle .gnu_attribute sections. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user