Commit 22b98f35 by Kai Tietz Committed by Kai Tietz

array-quals-1.c: Add xfail for x86_64-*-mingw*.

2008-04-25  Kai Tietz  <kai.tietz@onevision.com>

	* gcc.dg/array-quals-1.c: Add xfail for x86_64-*-mingw*.
	* gcc.dg/builtins-12.c: Add dg-options "-ansi".
	* gcc.dg/builtins-13.c: Likewise.
	* gcc.dg/pr25682.c: Likewise.
	* gcc.dg/pr33694.c: Likewise.
	* gcc.dg/c90-const-expr-2.c: Add check for _WIN64 define.
	* gcc.dg/c99-const-expr-2.c: Likewise.
	* gcc.dg/ia64-sync-1.c: Add typedef of size_t, for prototype.
	* gcc.dg/ia64-sync-2.c: Likewise.
	* gcc.dg/ia64-sync-3.c: Likewise
	* gcc.dg/large-size-array.c:  Add check for _WIN64 define.
	* gcc.dg/large-size-array-3.c: Likewise.
	* gcc.dg/large-size-array-2.c:  Add x86_64-*-mingw* for ignore error
	check.
	* gcc.dg/large-size-array-4.c: Likewise.
	* gcc.dg/max-1.c: Replace use of long by ssize_t.

From-SVN: r134659
parent e65e1476
2008-04-25 Kai Tietz <kai.tietz@onevision.com>
* gcc.dg/array-quals-1.c: Add xfail for x86_64-*-mingw*.
* gcc.dg/builtins-12.c: Add dg-options "-ansi".
* gcc.dg/builtins-13.c: Likewise.
* gcc.dg/pr25682.c: Likewise.
* gcc.dg/pr33694.c: Likewise.
* gcc.dg/c90-const-expr-2.c: Add check for _WIN64 define.
* gcc.dg/c99-const-expr-2.c: Likewise.
* gcc.dg/ia64-sync-1.c: Add typedef of size_t, for prototype.
* gcc.dg/ia64-sync-2.c: Likewise.
* gcc.dg/ia64-sync-3.c: Likewise
* gcc.dg/large-size-array.c: Add check for _WIN64 define.
* gcc.dg/large-size-array-3.c: Likewise.
* gcc.dg/large-size-array-2.c: Add x86_64-*-mingw* for ignore error
check.
* gcc.dg/large-size-array-4.c: Likewise.
* gcc.dg/max-1.c: Replace use of long by ssize_t.
2008-04-24 Steve Ellcey <sje@cup.hp.com> 2008-04-24 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/lower-subreg-1.c: Skip IA64 platform. * gcc.dg/lower-subreg-1.c: Skip IA64 platform.
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */ /* { dg-do compile } */
/* The MMIX port always switches to the .data section at the end of a file. */ /* The MMIX port always switches to the .data section at the end of a file. */
/* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* } } } */ /* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* x86_64-*-mingw* } } } */
static const int a[2] = { 1, 2 }; static const int a[2] = { 1, 2 };
const int a1[2] = { 1, 2 }; const int a1[2] = { 1, 2 };
typedef const int ci; typedef const int ci;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
Written by Roger Sayle, 12th April 2003. */ Written by Roger Sayle, 12th April 2003. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-ansi" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */ /* { dg-final { scan-assembler-not "__builtin_" } } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
Written by Roger Sayle, 12th April 2003. */ Written by Roger Sayle, 12th April 2003. */
/* { dg-do link } */ /* { dg-do link } */
/* { dg-options "-ansi" } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
......
...@@ -14,7 +14,7 @@ int *a; ...@@ -14,7 +14,7 @@ int *a;
int b; int b;
long *c; long *c;
#ifdef _LP64 #if defined(_LP64) || defined(_WIN64)
#define ZERO 0L #define ZERO 0L
#else #else
#define ZERO 0 #define ZERO 0
......
...@@ -14,7 +14,7 @@ int *a; ...@@ -14,7 +14,7 @@ int *a;
int b; int b;
long *c; long *c;
#ifdef _LP64 #if defined(_LP64) || defined(_WIN64)
#define ZERO 0L #define ZERO 0L
#else #else
#define ZERO 0 #define ZERO 0
......
...@@ -7,8 +7,10 @@ ...@@ -7,8 +7,10 @@
/* Test basic functionality of the intrinsics. The operations should /* Test basic functionality of the intrinsics. The operations should
not be optimized away if no one checks the return values. */ not be optimized away if no one checks the return values. */
__extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void); extern void abort (void);
extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern void *memcpy (void *, const void *, size_t);
static int AI[12]; static int AI[12];
static int init_noret_si[12] = { 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0 }; static int init_noret_si[12] = { 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0 };
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
/* Test basic functionality of the intrinsics. */ /* Test basic functionality of the intrinsics. */
__extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void); extern void abort (void);
extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern void *memcpy (void *, const void *, size_t);
static int AI[18]; static int AI[18];
static int init_si[18] = { 0,0,0,1,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 }; static int init_si[18] = { 0,0,0,1,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
/* Test basic functionality of the intrinsics. */ /* Test basic functionality of the intrinsics. */
__extension__ typedef __SIZE_TYPE__ size_t;
extern void abort (void); extern void abort (void);
extern void *memcpy (void *, const void *, __SIZE_TYPE__); extern void *memcpy (void *, const void *, size_t);
static int AI[4]; static int AI[4];
static int init_si[4] = { -30,-30,-50,-50 }; static int init_si[4] = { -30,-30,-50,-50 };
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
static char * name[] = { static char * name[] = {
[0x80000000] = "bar" [0x80000000] = "bar"
}; };
/* { dg-error "too large" "" { target { ! lp64 } } 6 } */ /* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } } 6 } */
/* { dg-do compile } */ /* { dg-do compile } */
#include <limits.h> #include <limits.h>
#ifdef __LP64__ #if defined(__LP64__) || defined(_WIN64)
#define DIM (UINT_MAX>>1)+1 #define DIM (UINT_MAX>>1)+1
#else #else
#define DIM 65536 #define DIM 65536
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
static char * name[] = { static char * name[] = {
[0x80000000] = "bar" [0x80000000] = "bar"
}; };
/* { dg-error "too large" "" { target { ! lp64 } } 6 } */ /* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } 6 } */
/* { dg-do compile } */ /* { dg-do compile } */
#include <limits.h> #include <limits.h>
#ifdef __LP64__ #if defined(__LP64__) || defined(_WIN64)
#define DIM UINT_MAX>>1 #define DIM UINT_MAX>>1
#else #else
#define DIM USHRT_MAX>>1 #define DIM USHRT_MAX>>1
......
...@@ -7,14 +7,19 @@ ...@@ -7,14 +7,19 @@
/* m32c has varying sized pointers */ /* m32c has varying sized pointers */
/* { dg-skip-if "" { "m32c-*-*" } { "*" } { "-mcpu=m32c" "-mcpu=m32cm" } } */ /* { dg-skip-if "" { "m32c-*-*" } { "*" } { "-mcpu=m32c" "-mcpu=m32cm" } } */
/* Kludge to make it signed. */
#define unsigned signed
__extension__ typedef __SIZE_TYPE__ ssize_t;
#undef unsigned
extern void abort (void); extern void abort (void);
long fff[10]; ssize_t fff[10];
void f(long a, long b) void f(ssize_t a, ssize_t b)
{ {
long crcc = b; ssize_t crcc = b;
long d = *((long*)(a+1)); ssize_t d = *((ssize_t*)(a+1));
int i; int i;
a = d >= b? d:b; a = d >= b? d:b;
...@@ -27,11 +32,11 @@ void f(long a, long b) ...@@ -27,11 +32,11 @@ void f(long a, long b)
/* The variable a cannot be a local variable as we get better aliasing /* The variable a cannot be a local variable as we get better aliasing
now and decide that the store to a is dead. The better aliasing comes now and decide that the store to a is dead. The better aliasing comes
from better representation of pointer arithmetic. */ from better representation of pointer arithmetic. */
long a = 10; ssize_t a = 10;
int main(void) int main(void)
{ {
int i; int i;
f((long)(&a)-1,0); f((ssize_t)(&a)-1,0);
for(i = 0;i<10;i++) for(i = 0;i<10;i++)
if (fff[i]!=10) if (fff[i]!=10)
abort (); abort ();
......
/* PR c/25682 */ /* PR c/25682 */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-ansi" } */
/* Test whether we don't ICE on questionable constructs where offsetof /* Test whether we don't ICE on questionable constructs where offsetof
should have been used instead. */ should have been used instead. */
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-ansi" } */
/* This used to ICE with type-checking enabled. */ /* This used to ICE with type-checking enabled. */
......
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