Commit 5e4119ea by Kai Tietz Committed by Kai Tietz

pr47917.c: Make test using POSIX-printf routines on mingw targets.

        * gcc.dg/torture/pr47917.c: Make test using POSIX-printf
        routines on mingw targets.
        * gcc.dg/vect/pr46126.c (size_t): Add support for
        LLP64 target.

From-SVN: r184754
parent ae45549b
2012-03-01 Kai Tietz <ktietz@redhat.com>
* gcc.dg/torture/pr47917.c: Make test using POSIX-printf
routines on mingw targets.
* gcc.dg/vect/pr46126.c (size_t): Add support for
LLP64 target.
2012-03-01 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/52445
......
......@@ -3,6 +3,7 @@
/* { dg-options "-std=c99 -D_ISO_C_SOURCE=19990L" { target alpha*-dec-osf5* } } */
/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target mips-sgi-irix6.5 *-*-solaris2.[89] } } */
/* { dg-options "-std=gnu99" { target *-*-hpux* } } */
/* { dg-additional-options "-D__USE_MINGW_ANSI_STDIO=1" { target *-*-mingw* } } */
/* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */
/* { dg-xfail-run-if "non-conforming C99 snprintf" { *-*-hpux11.[012]* } } */
......
/* { dg-do compile } */
__extension__ typedef __UINTPTR_TYPE__ uintptr_t;
typedef struct TypHeader {
struct TypHeader * * ptr;
unsigned char type;
......@@ -11,13 +13,13 @@ typedef struct TypHeader {
TypHandle * ptApp;
long lp;
long lc;
hdApp = ((long)(((TypHandle*)((hdCall)->ptr))[1])&1 ?
hdApp = ((uintptr_t)(((TypHandle*)((hdCall)->ptr))[1])&1 ?
(((TypHandle*)((hdCall)->ptr))[1]) : (*
EvTab[(((long)(((TypHandle*)((hdCall)->ptr))[1]) & 1) ? 1 :
EvTab[(((uintptr_t)(((TypHandle*)((hdCall)->ptr))[1]) & 1) ? 1 :
((((TypHandle*)((hdCall)->ptr))[1])->type))])((((TypHandle*)((hdCall)->ptr))[1])));
ptApp = ((TypHandle*)((hdApp)->ptr));
ptApp[1] = ((TypHandle) (((long)(lp) << 2) + 1));
ptApp[2] = ((TypHandle) (((long)(lc) << 2) + 1));
ptApp[1] = ((TypHandle) (uintptr_t) (((long)(lp) << 2) + 1));
ptApp[2] = ((TypHandle) (uintptr_t) (((long)(lc) << 2) + 1));
}
/* { dg-final { cleanup-tree-dump "vect" } } */
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