From df9e7ffb63a20f30f35a619dba091acf23d2f1b4 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Mon, 6 Feb 2017 10:25:05 +0000 Subject: [PATCH] S/390: Add SIZE_TYPE comment. gcc/ChangeLog: 2017-02-06 Andreas Krebbel * config/s390/linux.h(SIZE_TYPE): Add comment. From-SVN: r245204 --- gcc/ChangeLog | 4 ++++ gcc/config/s390/linux.h | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e4c756cd1c..0a6414fb962 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-02-06 Andreas Krebbel + + * config/s390/linux.h(SIZE_TYPE): Add comment. + 2017-02-06 Julian Brown Naveen H.S Virendra Pathak diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h index 197e7fe5ec6..739df00f62d 100644 --- a/gcc/config/s390/linux.h +++ b/gcc/config/s390/linux.h @@ -24,9 +24,12 @@ along with GCC; see the file COPYING3. If not see /* Target specific type definitions. */ -/* ??? Do we really want long as size_t on 31-bit? */ +/* For 31 bit our size type differs from most other targets (where it + is "unsigned int"). The difference tends to cause trouble e.g.: + Glibc BZ #16712, GCC BZ #79358 but cannot be changed due to ABI + issues. */ #undef SIZE_TYPE -#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "long unsigned int") +#define SIZE_TYPE "long unsigned int" #undef PTRDIFF_TYPE #define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int") -- 2.30.2