| Submitter | Kai Tietz |
|---|---|
| Date | June 20, 2012, 12:10 p.m. |
| Message ID | <CAEwic4aaE5kExyYmpHTme9VjeQhSRhWW4F3Qa43eWsYbY0v1Cg@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/166045/ |
| State | New |
| Headers | show |
Comments
On Jun 20, 2012, at 5:10 AM, Kai Tietz <ktietz70@googlemail.com> wrote: > 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 > Ok for apply? Ok.
Patch
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) };
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