This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch testsuite]: Fix two testcases for x86_64-*-mingw* target
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Jun 2012 14:10:16 +0200
- Subject: [patch testsuite]: Fix two testcases for x86_64-*-mingw* target
Hi,
ChangeLog
2012-06-20 Kai Tietz
* gcc.target/i386/pr23943.c (size_t): Use compatible type-definition
for LLP64 targets.
* gcc.target/i386/pr38988.c: Likewise.
Regression-tested for x86_64-w64-mingw32, and x86_64-unknown-linux-gnu.
Ok for apply?
Regards,
Kai
Index: gcc/testsuite/gcc.target/i386/pr23943.c
===================================================================
--- gcc/testsuite/gcc.target/i386/pr23943.c (revision 188753)
+++ gcc/testsuite/gcc.target/i386/pr23943.c (working copy)
@@ -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: gcc/testsuite/gcc.target/i386/pr38988.c
===================================================================
--- gcc/testsuite/gcc.target/i386/pr38988.c (revision 188753)
+++ gcc/testsuite/gcc.target/i386/pr38988.c (working copy)
@@ -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) };