From caa6283465daed977ab75d16116e5830ae3299aa Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Fri, 21 Sep 2018 12:43:46 +0000 Subject: [PATCH] Introduce TARGET_VXWORKS64 for VxWorks 64bit ports 2018-09-21 Olivier Hainque * config.gcc: Enforce def of TARGET_VXWORKS64 to 1 from triplet, similar to support for VxWorks7. * config/vxworks-dummy.h: Provide a default definition of TARGET_VXWORKS64 to 0. From-SVN: r264474 --- gcc/ChangeLog | 7 +++++++ gcc/config.gcc | 5 +++++ gcc/config/vxworks-dummy.h | 6 +++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14ae4ec2809..946ada248ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-09-21 Olivier Hainque + + * config.gcc: Enforce def of TARGET_VXWORKS64 to 1 from + triplet, similar to support for VxWorks7. + * config/vxworks-dummy.h: Provide a default definition + of TARGET_VXWORKS64 to 0. + 2018-09-21 Olivier Hainque * config/vxworks.h (TARGET_VXWORKS7): Move default definition ... diff --git a/gcc/config.gcc b/gcc/config.gcc index 8c8bc8030ff..0b4f2be496e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -941,6 +941,11 @@ case ${target} in tm_defines="$tm_defines TARGET_VXWORKS7=1" ;; esac + case $target in + *64-*-vxworks*) + tm_defines="$tm_defines TARGET_VXWORKS64=1" + ;; + esac ;; *-*-elf|arc*-*-elf*) # Assume that newlib is being used and so __cxa_atexit is provided. diff --git a/gcc/config/vxworks-dummy.h b/gcc/config/vxworks-dummy.h index 0a7eff9a7fe..fb5edee887f 100644 --- a/gcc/config/vxworks-dummy.h +++ b/gcc/config/vxworks-dummy.h @@ -22,7 +22,7 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . */ -/* True if we're targeting VxWorks, then VxWorks7. */ +/* True if we're targeting VxWorks, VxWorks7 and/or 64bit. */ #ifndef TARGET_VXWORKS #define TARGET_VXWORKS 0 #endif @@ -31,6 +31,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define TARGET_VXWORKS7 0 #endif +#ifndef TARGET_VXWORKS64 +#define TARGET_VXWORKS64 0 +#endif + /* True if generating code for a VxWorks RTP. */ #ifndef TARGET_VXWORKS_RTP #define TARGET_VXWORKS_RTP false -- 2.30.2