Commit caa62834 by Olivier Hainque Committed by Olivier Hainque

Introduce TARGET_VXWORKS64 for VxWorks 64bit ports

2018-09-21  Olivier Hainque  <hainque@adacore.com>

	* 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
parent 43a0fd7d
2018-09-21 Olivier Hainque <hainque@adacore.com> 2018-09-21 Olivier Hainque <hainque@adacore.com>
* 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 <hainque@adacore.com>
* config/vxworks.h (TARGET_VXWORKS7): Move default definition ... * config/vxworks.h (TARGET_VXWORKS7): Move default definition ...
* config/vxworks-dummy.h: here. * config/vxworks-dummy.h: here.
......
...@@ -941,6 +941,11 @@ case ${target} in ...@@ -941,6 +941,11 @@ case ${target} in
tm_defines="$tm_defines TARGET_VXWORKS7=1" tm_defines="$tm_defines TARGET_VXWORKS7=1"
;; ;;
esac esac
case $target in
*64-*-vxworks*)
tm_defines="$tm_defines TARGET_VXWORKS64=1"
;;
esac
;; ;;
*-*-elf|arc*-*-elf*) *-*-elf|arc*-*-elf*)
# Assume that newlib is being used and so __cxa_atexit is provided. # Assume that newlib is being used and so __cxa_atexit is provided.
......
...@@ -22,7 +22,7 @@ a copy of the GCC Runtime Library Exception along with this program; ...@@ -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 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
/* True if we're targeting VxWorks, then VxWorks7. */ /* True if we're targeting VxWorks, VxWorks7 and/or 64bit. */
#ifndef TARGET_VXWORKS #ifndef TARGET_VXWORKS
#define TARGET_VXWORKS 0 #define TARGET_VXWORKS 0
#endif #endif
...@@ -31,6 +31,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -31,6 +31,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define TARGET_VXWORKS7 0 #define TARGET_VXWORKS7 0
#endif #endif
#ifndef TARGET_VXWORKS64
#define TARGET_VXWORKS64 0
#endif
/* True if generating code for a VxWorks RTP. */ /* True if generating code for a VxWorks RTP. */
#ifndef TARGET_VXWORKS_RTP #ifndef TARGET_VXWORKS_RTP
#define TARGET_VXWORKS_RTP false #define TARGET_VXWORKS_RTP false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment