pr23943.c (size_t): Use compatible type-definition for LLP64 targets.
authorKai Tietz <ktietz@redhat.com>
Sun, 24 Jun 2012 12:09:22 +0000 (14:09 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Sun, 24 Jun 2012 12:09:22 +0000 (14:09 +0200)
        * gcc.target/i386/pr23943.c (size_t): Use compatible type-definition
        for LLP64 targets.
        * gcc.target/i386/pr38988.c: Likewise.

From-SVN: r188916

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr23943.c
gcc/testsuite/gcc.target/i386/pr38988.c

index 0e67aa0f590fbb5ee4b53cb12391b5baf036f80b..7faf774eb7ff0d960ddbbfc97fd134c2b23995e9 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-24  Kai Tietz  <ktietz@redhat.com>
+
+       * gcc.target/i386/pr23943.c (size_t): Use compatible type-definition
+       for LLP64 targets.
+       * gcc.target/i386/pr38988.c: Likewise.
+
 2012-06-22  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/47710
index 9e14036ec73874976654aaf0be05e50e11d42f5b..d70e5a6b2a9f3e2358bb08ba07b327cfa321c84c 100644 (file)
@@ -4,7 +4,7 @@
 /* { dg-require-effective-target fpic } */
 /* { dg-options "-O2 -fPIC" } */
 
-typedef long unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 
 extern size_t strlen (__const char *__s)
     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
index 8e2c8eaa67b88d3dd9f934fe503e85390f8368c6..8449cc69cfdbf41c1a97489ec6883a7d97dc9001 100644 (file)
@@ -3,7 +3,7 @@
 /* { dg-require-effective-target fpic } */
 /* { dg-options "-O2 -fpic -mcmodel=large" } */
 
-typedef long unsigned int size_t;
+__extension__ typedef __SIZE_TYPE__ size_t;
 typedef void (*func_ptr) (void);
 
 static func_ptr __DTOR_LIST__[1] = { (func_ptr) (-1) };