Commit 78e68a89 by Kai Tietz Committed by Kai Tietz

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
parent 35e1a5e7
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.
2010-05-25 Dodji Seketeli <dodji@redhat.com>
PR c++/44188
......
......@@ -2,7 +2,7 @@
/* PR c/43248 */
int foo(__SIZE_TYPE__ i)
__extension__ int foo(__SIZE_TYPE__ i)
{
i ? : (void *){}; /* { dg-error "" } */
}
......
......@@ -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)
{
......
/* PR c++/37561 */
/* { dg-do compile } */
__PTRDIFF_TYPE__ p;
__extension__ __PTRDIFF_TYPE__ p;
char q;
void
......
......@@ -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;
......
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment