Commit aa56e87e by Olivier Hainque Committed by Olivier Hainque

Account for TARGET_VXWORKS64 in default SIZE/PTRDIFF_TYPE for vxworks

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

	* config/vxworks.h (SIZE_TYPE): Account for TARGET_VXWORKS64.
	(PTRDIFF_TYPE): Likewise.

From-SVN: r264475
parent caa62834
2018-09-21 Olivier Hainque <hainque@adacore.com> 2018-09-21 Olivier Hainque <hainque@adacore.com>
* config/vxworks.h (SIZE_TYPE): Account for TARGET_VXWORKS64.
(PTRDIFF_TYPE): Likewise.
2018-09-21 Olivier Hainque <hainque@adacore.com>
* config.gcc: Enforce def of TARGET_VXWORKS64 to 1 from * config.gcc: Enforce def of TARGET_VXWORKS64 to 1 from
triplet, similar to support for VxWorks7. triplet, similar to support for VxWorks7.
* config/vxworks-dummy.h: Provide a default definition * config/vxworks-dummy.h: Provide a default definition
......
...@@ -164,10 +164,10 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority); ...@@ -164,10 +164,10 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
#define VXWORKS_GOTT_INDEX "__GOTT_INDEX__" #define VXWORKS_GOTT_INDEX "__GOTT_INDEX__"
#undef PTRDIFF_TYPE #undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int" #define PTRDIFF_TYPE (TARGET_VXWORKS64 ? "long int" : "int")
#undef SIZE_TYPE #undef SIZE_TYPE
#define SIZE_TYPE "unsigned int" #define SIZE_TYPE (TARGET_VXWORKS64 ? "long unsigned int" : "unsigned int")
#undef TARGET_LIBC_HAS_FUNCTION #undef TARGET_LIBC_HAS_FUNCTION
#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function #define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
......
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