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
This commit is contained in:
parent
caa6283465
commit
aa56e87e1f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
@ -164,10 +164,10 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority);
|
|||
#define VXWORKS_GOTT_INDEX "__GOTT_INDEX__"
|
||||
|
||||
#undef PTRDIFF_TYPE
|
||||
#define PTRDIFF_TYPE "int"
|
||||
#define PTRDIFF_TYPE (TARGET_VXWORKS64 ? "long int" : "int")
|
||||
|
||||
#undef SIZE_TYPE
|
||||
#define SIZE_TYPE "unsigned int"
|
||||
#define SIZE_TYPE (TARGET_VXWORKS64 ? "long unsigned int" : "unsigned int")
|
||||
|
||||
#undef TARGET_LIBC_HAS_FUNCTION
|
||||
#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
|
||||
|
|
Loading…
Add table
Reference in a new issue