+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>
* gcc.dg/lower-subreg-1.c: Skip IA64 platform.
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* 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 };
const int a1[2] = { 1, 2 };
typedef const int ci;
Written by Roger Sayle, 12th April 2003. */
/* { dg-do compile } */
+/* { dg-options "-ansi" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
typedef __SIZE_TYPE__ size_t;
Written by Roger Sayle, 12th April 2003. */
/* { dg-do link } */
+/* { dg-options "-ansi" } */
typedef __SIZE_TYPE__ size_t;
int b;
long *c;
-#ifdef _LP64
+#if defined(_LP64) || defined(_WIN64)
#define ZERO 0L
#else
#define ZERO 0
int b;
long *c;
-#ifdef _LP64
+#if defined(_LP64) || defined(_WIN64)
#define ZERO 0L
#else
#define ZERO 0
/* Test basic functionality of the intrinsics. The operations should
not be optimized away if no one checks the return values. */
+__extension__ typedef __SIZE_TYPE__ size_t;
+
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 init_noret_si[12] = { 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0 };
/* Test basic functionality of the intrinsics. */
+__extension__ typedef __SIZE_TYPE__ size_t;
+
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 init_si[18] = { 0,0,0,1,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
/* Test basic functionality of the intrinsics. */
+__extension__ typedef __SIZE_TYPE__ size_t;
+
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 init_si[4] = { -30,-30,-50,-50 };
static char * name[] = {
[0x80000000] = "bar"
};
-/* { dg-error "too large" "" { target { ! lp64 } } 6 } */
+/* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } } 6 } */
/* { dg-do compile } */
#include <limits.h>
-#ifdef __LP64__
+#if defined(__LP64__) || defined(_WIN64)
#define DIM (UINT_MAX>>1)+1
#else
#define DIM 65536
static char * name[] = {
[0x80000000] = "bar"
};
-/* { dg-error "too large" "" { target { ! lp64 } } 6 } */
+/* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } 6 } */
/* { dg-do compile } */
#include <limits.h>
-#ifdef __LP64__
+#if defined(__LP64__) || defined(_WIN64)
#define DIM UINT_MAX>>1
#else
#define DIM USHRT_MAX>>1
/* m32c has varying sized pointers */
/* { 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);
-long fff[10];
+ssize_t fff[10];
-void f(long a, long b)
+void f(ssize_t a, ssize_t b)
{
- long crcc = b;
- long d = *((long*)(a+1));
+ ssize_t crcc = b;
+ ssize_t d = *((ssize_t*)(a+1));
int i;
a = d >= b? d:b;
/* 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
from better representation of pointer arithmetic. */
-long a = 10;
+ssize_t a = 10;
int main(void)
{
int i;
- f((long)(&a)-1,0);
+ f((ssize_t)(&a)-1,0);
for(i = 0;i<10;i++)
if (fff[i]!=10)
abort ();
/* PR c/25682 */
/* { dg-do compile } */
+/* { dg-options "-ansi" } */
/* Test whether we don't ICE on questionable constructs where offsetof
should have been used instead. */
/* { dg-do compile } */
+/* { dg-options "-ansi" } */
/* This used to ICE with type-checking enabled. */