From: Olivier Hainque Date: Fri, 21 Sep 2018 13:01:31 +0000 (+0000) Subject: Account for TARGET_VXWORKS64 in default SIZE/PTRDIFF_TYPE for vxworks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa56e87e1f6024021e56a7086f8a56bba6f43b9c;p=gcc.git Account for TARGET_VXWORKS64 in default SIZE/PTRDIFF_TYPE for vxworks 2018-09-21 Olivier Hainque * config/vxworks.h (SIZE_TYPE): Account for TARGET_VXWORKS64. (PTRDIFF_TYPE): Likewise. From-SVN: r264475 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 946ada248ac..a47cb79d973 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-21 Olivier Hainque + + * config/vxworks.h (SIZE_TYPE): Account for TARGET_VXWORKS64. + (PTRDIFF_TYPE): Likewise. + 2018-09-21 Olivier Hainque * config.gcc: Enforce def of TARGET_VXWORKS64 to 1 from diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index c2a0cb44d9a..a7de802762a 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -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