OSDN Git Service

2008-04-25 Kai Tietz <kai.tietz@onevision.com>
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Apr 2008 08:40:10 +0000 (08:40 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Apr 2008 08:40:10 +0000 (08:40 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134659 138bc75d-0d04-0410-961f-82ee72b054a4

16 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/array-quals-1.c
gcc/testsuite/gcc.dg/builtins-12.c
gcc/testsuite/gcc.dg/builtins-13.c
gcc/testsuite/gcc.dg/c90-const-expr-2.c
gcc/testsuite/gcc.dg/c99-const-expr-2.c
gcc/testsuite/gcc.dg/ia64-sync-1.c
gcc/testsuite/gcc.dg/ia64-sync-2.c
gcc/testsuite/gcc.dg/ia64-sync-3.c
gcc/testsuite/gcc.dg/large-size-array-2.c
gcc/testsuite/gcc.dg/large-size-array-3.c
gcc/testsuite/gcc.dg/large-size-array-4.c
gcc/testsuite/gcc.dg/large-size-array.c
gcc/testsuite/gcc.dg/max-1.c
gcc/testsuite/gcc.dg/pr25682.c
gcc/testsuite/gcc.dg/pr33694.c

index 71bf3e0..526adba 100644 (file)
@@ -1,3 +1,22 @@
+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.
 2008-04-24  Steve Ellcey  <sje@cup.hp.com>
 
        * gcc.dg/lower-subreg-1.c: Skip IA64 platform.
index 24027bc..514daf8 100644 (file)
@@ -4,7 +4,7 @@
 /* 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.  */
 /* 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;
 static const int a[2] = { 1, 2 };
 const int a1[2] = { 1, 2 };
 typedef const int ci;
index 22ba8ce..61a80ed 100644 (file)
@@ -6,6 +6,7 @@
    Written by Roger Sayle, 12th April 2003.  */
 
 /* { dg-do compile } */
    Written by Roger Sayle, 12th April 2003.  */
 
 /* { dg-do compile } */
+/* { dg-options "-ansi" } */
 /* { dg-final { scan-assembler-not "__builtin_" } } */
 
 typedef __SIZE_TYPE__ size_t;
 /* { dg-final { scan-assembler-not "__builtin_" } } */
 
 typedef __SIZE_TYPE__ size_t;
index befcd34..149407b 100644 (file)
@@ -6,6 +6,7 @@
    Written by Roger Sayle, 12th April 2003.  */
 
 /* { dg-do link } */
    Written by Roger Sayle, 12th April 2003.  */
 
 /* { dg-do link } */
+/* { dg-options "-ansi" } */
 
 typedef __SIZE_TYPE__ size_t;
 
 
 typedef __SIZE_TYPE__ size_t;
 
index 8c2c99f..cad5bc8 100644 (file)
@@ -14,7 +14,7 @@ int *a;
 int b;
 long *c;
 
 int b;
 long *c;
 
-#ifdef _LP64
+#if defined(_LP64) || defined(_WIN64)
 #define ZERO 0L
 #else
 #define ZERO 0
 #define ZERO 0L
 #else
 #define ZERO 0
index 1a457e5..555a58c 100644 (file)
@@ -14,7 +14,7 @@ int *a;
 int b;
 long *c;
 
 int b;
 long *c;
 
-#ifdef _LP64
+#if defined(_LP64) || defined(_WIN64)
 #define ZERO 0L
 #else
 #define ZERO 0
 #define ZERO 0L
 #else
 #define ZERO 0
index 8f4512e..efca5d7 100644 (file)
@@ -7,8 +7,10 @@
 /* Test basic functionality of the intrinsics.  The operations should
    not be optimized away if no one checks the return values.  */
 
 /* 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 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 };
 
 static int AI[12];
 static int init_noret_si[12] = { 0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 0, 0 };
index bb8c728..b3ff127 100644 (file)
@@ -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 init_si[18] = { 0,0,0,1,0,0,0,0,-1,0,0,0,0,0,-1,0,0,0 };
 
 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 };
index d093cdd..965d435 100644 (file)
@@ -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 init_si[4] = { -30,-30,-50,-50 };
 
 static int AI[4];
 static int init_si[4] = { -30,-30,-50,-50 };
index 5411b83..8c72a44 100644 (file)
@@ -4,4 +4,4 @@
 static char * name[] = {
     [0x80000000]  = "bar"
   };
 static char * name[] = {
     [0x80000000]  = "bar"
   };
-/* { dg-error "too large" "" { target { ! lp64 } } 6 } */
+/* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } } 6 } */
index 0b6149b..ea13b93 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 #include <limits.h>
 
 /* { dg-do compile } */
 #include <limits.h>
 
-#ifdef __LP64__
+#if defined(__LP64__) || defined(_WIN64)
 #define DIM (UINT_MAX>>1)+1
 #else
 #define DIM 65536
 #define DIM (UINT_MAX>>1)+1
 #else
 #define DIM 65536
index 020d57e..16692b7 100644 (file)
@@ -4,4 +4,4 @@
 static char * name[] = {
     [0x80000000]  = "bar"
   };
 static char * name[] = {
     [0x80000000]  = "bar"
   };
-/* { dg-error "too large" "" { target { ! lp64 } } 6 } */
+/* { dg-error "too large" "" { target { ! { lp64 x86_64-*-mingw* } } 6 } */
index 855d77e..6ea7606 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 #include <limits.h>
 
 /* { dg-do compile } */
 #include <limits.h>
 
-#ifdef __LP64__
+#if defined(__LP64__) || defined(_WIN64)
 #define DIM UINT_MAX>>1
 #else
 #define DIM USHRT_MAX>>1
 #define DIM UINT_MAX>>1
 #else
 #define DIM USHRT_MAX>>1
index a5f1605..40f2145 100644 (file)
@@ -7,14 +7,19 @@
 /* m32c has varying sized pointers */
 /* { dg-skip-if "" { "m32c-*-*" } { "*" } { "-mcpu=m32c" "-mcpu=m32cm" } } */
 
 /* 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);
 
 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;
   int i;
 
   a = d >= b? d:b;
@@ -27,11 +32,11 @@ void f(long a, long 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. */
 /* 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;
 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 ();
   for(i = 0;i<10;i++)
    if (fff[i]!=10)
     abort ();
index 3a1d7c2..4118862 100644 (file)
@@ -1,5 +1,6 @@
 /* PR c/25682 */
 /* { dg-do compile } */
 /* 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.  */
 
 /* Test whether we don't ICE on questionable constructs where offsetof
    should have been used instead.  */
 
index eb7655e..fa62b9e 100644 (file)
@@ -1,4 +1,5 @@
 /* { 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.  */