diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2017-02-06 10:25:05 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2017-02-06 10:25:05 +0000 |
commit | df9e7ffb63a20f30f35a619dba091acf23d2f1b4 (patch) | |
tree | 384903261760a6573ad873254b51f1428628bb41 | |
parent | f192030dd1d610fd91f12e83085132a1b87864d1 (diff) | |
download | gcc-df9e7ffb63a20f30f35a619dba091acf23d2f1b4.zip gcc-df9e7ffb63a20f30f35a619dba091acf23d2f1b4.tar.gz gcc-df9e7ffb63a20f30f35a619dba091acf23d2f1b4.tar.bz2 |
S/390: Add SIZE_TYPE comment.
gcc/ChangeLog:
2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/linux.h(SIZE_TYPE): Add comment.
From-SVN: r245204
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/s390/linux.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e4c756..0a6414f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com> + + * config/s390/linux.h(SIZE_TYPE): Add comment. + 2017-02-06 Julian Brown <julian@codesourcery.com> Naveen H.S <Naveen.Hurugalawadi@cavium.com> Virendra Pathak <virendra.pathak@broadcom.com> diff --git a/gcc/config/s390/linux.h b/gcc/config/s390/linux.h index 197e7fe..739df00 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") |