diff options
author | Olivier Hainque <hainque@adacore.com> | 2020-10-20 15:15:51 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2020-10-27 16:28:04 +0000 |
commit | f6b710fc6f93db3ce2fda08e025c3badac7996b0 (patch) | |
tree | 432b6eb10234f96fe23fce99b4b19bc22c937cbb /gcc/config/vxworks.h | |
parent | 7fdedf8a8e8f586cd943c17b16b2dc404b90d8db (diff) | |
download | gcc-f6b710fc6f93db3ce2fda08e025c3badac7996b0.zip gcc-f6b710fc6f93db3ce2fda08e025c3badac7996b0.tar.gz gcc-f6b710fc6f93db3ce2fda08e025c3badac7996b0.tar.bz2 |
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.
Diffstat (limited to 'gcc/config/vxworks.h')
-rw-r--r-- | gcc/config/vxworks.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index b7e5970..e2ce22b 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -265,6 +265,18 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority); } \ 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 /* The diab linker does not handle .gnu_attribute sections. */ |