S/390: Add SIZE_TYPE comment.
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Mon, 6 Feb 2017 10:25:05 +0000 (10:25 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Mon, 6 Feb 2017 10:25:05 +0000 (10:25 +0000)
gcc/ChangeLog:

2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/linux.h(SIZE_TYPE): Add comment.

From-SVN: r245204

gcc/ChangeLog
gcc/config/s390/linux.h

index 5e4c756cd1c06fc9754e2525a9d22e80f928d3b1..0a6414fb962839ed88d7a6695873d1302010d6ef 100644 (file)
@@ -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>
index 197e7fe5ec6758f33878bf9ba3be2a2adcf52508..739df00f62d808712f36c9c54230af7c84eec671 100644 (file)
@@ -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")