diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-06-07 10:55:20 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2010-06-07 12:55:20 +0200 |
commit | 78e68a8937395f334fe12c347897950e9caba6cb (patch) | |
tree | 9c357c4d07f49be13223e9cea1d2c632c98aa710 /gcc/testsuite/gcc.dg | |
parent | 35e1a5e7cf85b08634a46b08e76d28ced021aff9 (diff) | |
download | gcc-78e68a8937395f334fe12c347897950e9caba6cb.zip gcc-78e68a8937395f334fe12c347897950e9caba6cb.tar.gz gcc-78e68a8937395f334fe12c347897950e9caba6cb.tar.bz2 |
compound-literal-1.c: Fix for llp64.
2010-06-07 Kai Tietz <kai.tietz@onevision.com>
* gcc.dg/compound-literal-1.c: Fix for llp64.
* gcc.dg/pr32370.c: Likewise.
* gcc.dg/pr37561.c: Likewise.
* gcc.dg/pr41340.c: Likewise.
* gcc.dg/pr41551.c: Likewise.
From-SVN: r160362
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/compound-literal-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr32370.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr37561.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr41340.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr41551.c | 4 |
5 files changed, 14 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/compound-literal-1.c b/gcc/testsuite/gcc.dg/compound-literal-1.c index 6c644d4..9b3b24e 100644 --- a/gcc/testsuite/gcc.dg/compound-literal-1.c +++ b/gcc/testsuite/gcc.dg/compound-literal-1.c @@ -2,7 +2,7 @@ /* PR c/43248 */ -int foo(__SIZE_TYPE__ i) +__extension__ int foo(__SIZE_TYPE__ i) { i ? : (void *){}; /* { dg-error "" } */ } diff --git a/gcc/testsuite/gcc.dg/pr32370.c b/gcc/testsuite/gcc.dg/pr32370.c index 80a7c54..f039bdf 100644 --- a/gcc/testsuite/gcc.dg/pr32370.c +++ b/gcc/testsuite/gcc.dg/pr32370.c @@ -2,15 +2,19 @@ /* { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */ /* { dg-options "" { target ia64-*-* } } */ /* { dg-options "-ffixed-esi" { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-mabi=sysv -ffixed-esi" { target x86_64-*-mingw* } } */ -#if defined __i386__ || defined __x86_64__ +#if (defined __i386__ || defined __x86_64__) && ! defined _WIN64 # define C "=S" # define TYPE unsigned long -#elif defined __ia64__ +#elif defined __ia64__ || defined _WIN64 # define C "=a" # define TYPE unsigned long long #endif +#ifdef _WIN64 +__extension__ +#endif unsigned int foo (TYPE port) { diff --git a/gcc/testsuite/gcc.dg/pr37561.c b/gcc/testsuite/gcc.dg/pr37561.c index 82eca96..ec712a7 100644 --- a/gcc/testsuite/gcc.dg/pr37561.c +++ b/gcc/testsuite/gcc.dg/pr37561.c @@ -1,7 +1,7 @@ /* PR c++/37561 */ /* { dg-do compile } */ -__PTRDIFF_TYPE__ p; +__extension__ __PTRDIFF_TYPE__ p; char q; void diff --git a/gcc/testsuite/gcc.dg/pr41340.c b/gcc/testsuite/gcc.dg/pr41340.c index 72ad929..b86f40b 100644 --- a/gcc/testsuite/gcc.dg/pr41340.c +++ b/gcc/testsuite/gcc.dg/pr41340.c @@ -10,6 +10,8 @@ struct S2 { struct S1 s2; }; struct S3 { unsigned s3; struct S2 **s4; }; struct S5 { struct S2 *s5; }; +__extension__ typedef __INTPTR_TYPE__ ssize_t; + extern void fn0 (void) __attribute__ ((__noreturn__)); T fn6 (struct S3); void fn7 (void); @@ -45,7 +47,7 @@ fn5 (struct S3 x, T *y) { if (!fn3 (x)) { - *y = (T) (long) fn4 (x); + *y = (T) (ssize_t) fn4 (x); return 1; } return 0; diff --git a/gcc/testsuite/gcc.dg/pr41551.c b/gcc/testsuite/gcc.dg/pr41551.c index 25a8e71..e24fbc3 100644 --- a/gcc/testsuite/gcc.dg/pr41551.c +++ b/gcc/testsuite/gcc.dg/pr41551.c @@ -3,8 +3,10 @@ /* Make sure we do not ICE. */ +__extension__ typedef __SIZE_TYPE__ size_t; + int main(void) { int var, *p = &var; - return (double)(unsigned long)(p); + return (double)(size_t)(p); } |