diff options
author | Olivier Hainque <hainque@adacore.com> | 2018-09-21 13:01:31 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2018-09-21 13:01:31 +0000 |
commit | aa56e87e1f6024021e56a7086f8a56bba6f43b9c (patch) | |
tree | 0a759f35938ea712d0262f0f9f371504cd3a36da /gcc/config/vxworks.h | |
parent | caa6283465daed977ab75d16116e5830ae3299aa (diff) | |
download | gcc-aa56e87e1f6024021e56a7086f8a56bba6f43b9c.zip gcc-aa56e87e1f6024021e56a7086f8a56bba6f43b9c.tar.gz gcc-aa56e87e1f6024021e56a7086f8a56bba6f43b9c.tar.bz2 |
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
Diffstat (limited to 'gcc/config/vxworks.h')
-rw-r--r-- | gcc/config/vxworks.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index c2a0cb4..a7de802 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 |