]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20080625-1.c: Skip for M32C.
authorNick Clifton <nickc@redhat.com>
Thu, 5 Feb 2009 11:59:20 +0000 (11:59 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 5 Feb 2009 11:59:20 +0000 (11:59 +0000)
        * gcc.c-torture/compile/20080625-1.c: Skip for M32C.
        * gcc.c-torture/compile/limits-stringlit.c: Likewise.
        * gcc.dg/cdce1.c: Likewise.
        * gcc.dg/cpp/_Pragma6.c: Likewise.
        * g++.dg/cpp/_Pragma1.C: Likewise.
        * gcc.dg/utf32-2.c: Xfail for M32C.
        * gcc.dg/utf32-1.c: Likewise.
        * gcc.dg/utf32-3.c: Likewise.
        * gcc.dg/Wtype-limits.c: Add expected warning messages for 16-bit
        targets.
        * gcc.dg/Wtype-limits-Wextra.c: Likewise.
        * gcc.dg/utf32-4.c: Only run for 32-bit+ targets.
        * gcc.dg/Wconversion-5.c: Likewise.
        * gcc.dg/tree-ssa/data-dep-1.c: Likewise.
        * gcc.dg/tree-ssa/ldist-3.c: Likewise.
        * gcc.dg/tree-ssa/ldist-5.c: Likewise.
        * gcc.dg/utf-inc-init.c: Likewise.
        * gcc.dg/pr11492.c: Xfail for 16-bit targets.
        * gcc.dg/utf-array.c: Add expected warning messages for M32C.
        * gcc.dg/utf-array-short-wchar.c: Likewise.
        * gcc.dg/tree-ssa/pr33920.c: Expect a warning from all 16-bit targets.
        * gcc.dg/mallign.c: Use size_t instead of long.

From-SVN: r143962

22 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/_Pragma1.C
gcc/testsuite/gcc.c-torture/compile/20080625-1.c
gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c
gcc/testsuite/gcc.dg/Wconversion-5.c
gcc/testsuite/gcc.dg/Wtype-limits-Wextra.c
gcc/testsuite/gcc.dg/Wtype-limits.c
gcc/testsuite/gcc.dg/cdce1.c
gcc/testsuite/gcc.dg/cpp/_Pragma6.c
gcc/testsuite/gcc.dg/mallign.c
gcc/testsuite/gcc.dg/pr11492.c
gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c
gcc/testsuite/gcc.dg/tree-ssa/pr33920.c
gcc/testsuite/gcc.dg/utf-array-short-wchar.c
gcc/testsuite/gcc.dg/utf-array.c
gcc/testsuite/gcc.dg/utf-inc-init.c
gcc/testsuite/gcc.dg/utf32-1.c
gcc/testsuite/gcc.dg/utf32-2.c
gcc/testsuite/gcc.dg/utf32-3.c
gcc/testsuite/gcc.dg/utf32-4.c

index 03813874062722aba5fb863fd3d4ff3c1c473fdd..6299f28c40923617c7d3e15f3be883b6d4881771 100644 (file)
@@ -1,3 +1,28 @@
+2009-02-05  Nick Clifton  <nickc@redhat.com>
+
+       * gcc.c-torture/compile/20080625-1.c: Skip for M32C.
+       * gcc.c-torture/compile/limits-stringlit.c: Likewise.
+       * gcc.dg/cdce1.c: Likewise.
+       * gcc.dg/cpp/_Pragma6.c: Likewise.
+       * g++.dg/cpp/_Pragma1.C: Likewise.
+       * gcc.dg/utf32-2.c: Xfail for M32C.
+       * gcc.dg/utf32-1.c: Likewise.
+       * gcc.dg/utf32-3.c: Likewise.
+       * gcc.dg/Wtype-limits.c: Add expected warning messages for 16-bit
+       targets.
+       * gcc.dg/Wtype-limits-Wextra.c: Likewise.
+       * gcc.dg/utf32-4.c: Only run for 32-bit+ targets.
+       * gcc.dg/Wconversion-5.c: Likewise.
+       * gcc.dg/tree-ssa/data-dep-1.c: Likewise.
+       * gcc.dg/tree-ssa/ldist-3.c: Likewise.
+       * gcc.dg/tree-ssa/ldist-5.c: Likewise.
+       * gcc.dg/utf-inc-init.c: Likewise.
+       * gcc.dg/pr11492.c: Xfail for 16-bit targets.
+       * gcc.dg/utf-array.c: Add expected warning messages for M32C.
+       * gcc.dg/utf-array-short-wchar.c: Likewise.
+       * gcc.dg/tree-ssa/pr33920.c: Expect a warning from all 16-bit targets.
+       * gcc.dg/mallign.c: Use size_t instead of long.
+
 2009-02-05  Uros Bizjak  <ubizjak@gmail.com>
 
        * g++.dg/torture/pr31863.C: Generalize dg-timeout-factor.
index 93d55ee53cd8b97247f93ffc808485c056abea6f..e44709b45706d3d69d50e933269270026f40aae0 100644 (file)
@@ -2,7 +2,7 @@
 // This is supposed to succeed only if
 // the target defines HANDLE_PRAGMA_PACK_PUSH_POP 
 // and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.
-// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf } } } }
+// { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } }
 
 #define push bar
 #define foo _Pragma ("pack(push)")
index 226bea1ffaea357c0ff6d7437a1bcf85b18811f1..e656cd4f58e4579788a06e415b4d88c2f696b8b5 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-skip-if "too much data" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-skip-if "too much data" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
 struct peakbufStruct {
     unsigned int lnum [5000];
     int lscan [5000][4000];
index c24ad4b57939b9f6339ef8ec7bfed701f5415b0a..75b824d19879c62a61e151399a581eba2c3117d3 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-skip-if "Array too big" { avr-*-* picochip-*-* } { "*" } { "" } } */ 
+/* { dg-skip-if "Array too big" { avr-*-* picochip-*-* m32c-*-* } { "*" } { "" } } */ 
 
 #define STR2 "012345678901234567890123456789012345678901234567890123456789\
 0123456789012345678901234567890123456789"
index 2b0884525f48d8a3bd5da4c96d44bfa5601a879f..be749a9a65f5b9951c814c317f09dd618b1457f8 100644 (file)
@@ -19,7 +19,7 @@ void test1 (void)
   unsigned char f = (int) uc;
   signed char g = (int) sc;
   unsigned char h = (unsigned int) (short int) uc;
-  signed char i = (int) (unsigned short int) sc;       /* { dg-warning "may alter its value" "" { xfail avr-*-* } } */
+  signed char i = (int) (unsigned short int) sc;       /* { dg-warning "may alter its value" "" { target { int32plus } } } */
   unsigned char j = (unsigned int) (short int) us;     /* { dg-warning "may alter its value" } */
   signed char k = (int) (unsigned short int) ss;       /* { dg-warning "may alter its value" } */
 }
index 79fbbd00f4429e7121585da323a6300eca684dbc..f8f528c996b8b60a521309ec5d419aa964ddfda1 100644 (file)
@@ -21,11 +21,14 @@ void a (unsigned char x)
 }
 
 void b (unsigned short x)
-{
-  if (x < 0)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (x >= 0) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (0 > x)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (0 <= x) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { ! "avr-*-*" } } } */
+{                    /* { dg-warning "comparison of unsigned expression < 0 is always false" "" { target { ! int32plus } } 25 } */
+  if (x < 0)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
+                     /* { dg-warning "comparison of unsigned expression >= 0 is always true" "" { target { ! int32plus } } 27 } */
+  if (x >= 0) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { int32plus } } } */
+                     /* { dg-warning "comparison of unsigned expression < 0 is always false" "" { target { ! int32plus } } 29 } */
+  if (0 > x)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
+                     /* { dg-warning "comparison of unsigned expression >= 0 is always true" "" { target { ! int32plus } } 31 } */
+  if (0 <= x) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { int32plus } } } */
 }
 
 void c (unsigned int x)
@@ -58,7 +61,7 @@ void e (unsigned long long x)
 
 int test (int x) 
 {
-  if ((long long)x <= 0x123456789ABCLL) /* { dg-bogus "comparison is always true due to limited range of data type" "" { xfail *-*-* } 61 } */
+  if ((long long)x <= 0x123456789ABCLL) /* { dg-bogus "comparison is always true due to limited range of data type" "" { xfail *-*-* } 64 } */
     return 1;
   else 
     return 0;
index 5a4605a08d6c393cd75228fd05e1c5e997a99eea..5ff9ac053da4b63cc35359118a111e33b35b69f5 100644 (file)
@@ -21,11 +21,14 @@ void a (unsigned char x)
 }
 
 void b (unsigned short x)
-{
-  if (x < 0)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (x >= 0) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (0 > x)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { ! "avr-*-*" } } } */
-  if (0 <= x) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { ! "avr-*-*" } } } */
+{                    /* { dg-warning "comparison of unsigned expression < 0 is always false" "" { target { ! int32plus } } 25 } */
+  if (x < 0)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
+                     /* { dg-warning "comparison of unsigned expression >= 0 is always true" "" { target { ! int32plus } } 27 } */
+  if (x >= 0) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { int32plus } } } */  
+                     /* { dg-warning "comparison of unsigned expression < 0 is always false" "" { target { ! int32plus } } 29 } */
+  if (0 > x)  return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
+                     /* { dg-warning "comparison of unsigned expression >= 0 is always true" "" { target { ! int32plus } } 31 } */
+  if (0 <= x) return;/* { dg-warning "comparison is always true due to limited range of data type" "" { target { int32plus } } } */
 }
 
 void c (unsigned int x)
@@ -58,7 +61,7 @@ void e (unsigned long long x)
 
 int test (int x) 
 {
-  if ((long long)x <= 0x123456789ABCLL) /* { dg-bogus "comparison is always true due to limited range of data type" "" { xfail *-*-* } 61 } */
+  if ((long long)x <= 0x123456789ABCLL) /* { dg-bogus "comparison is always true due to limited range of data type" "" { xfail *-*-* } 64 } */
     return 1;
   else 
     return 0;
index 61b19c9065c43112eb69f2e1ee58c952b7f72625..dda50207015e0230786ce47cacfdf503feb3d862 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do  run  } */
-/* { dg-skip-if "doubles are floats" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-skip-if "doubles are floats" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details  -lm" } */
 /* { dg-final { scan-tree-dump  "cdce1.c:16: note: function call is shrink-wrapped into error conditions\."  "cdce" } } */
 /* { dg-final { cleanup-tree-dump "cdce" } } */
index 73f800486d11addf1dde4a9fc427aff7f6c63725..74511a10066cdae8c785af28af55c411e96f0ee5 100644 (file)
@@ -2,7 +2,7 @@
 /* This is supposed to succeed only if
    the target defines HANDLE_PRAGMA_PACK_PUSH_POP
    and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION.  */
-/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf } } } } */
+/* { dg-do compile { target { ! { powerpc-ibm-aix* *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf m32c-*-* } } } } */
 
 #define push bar
 #define foo _Pragma ("pack(push)")
index 4a64dbbcc3b3e35c75ed56c9f9df947ca77b64df..6a0041e646651aaabbdf47bf17fcf0546b943420 100644 (file)
@@ -9,7 +9,7 @@ typedef int word __attribute__((mode(word)));
 
 int main()
 {
-    if ((long)malloc (1) & (sizeof(word)-1))
+    if ((size_t)malloc (1) & (sizeof(word)-1))
        abort ();
     return 0;
 }                                                                              
index 9d79f45b92daef6dd1840f6607db533c0dbbb602..4a8b617617f1e98636427a091c1d80c47d59a10f 100644 (file)
@@ -5,7 +5,7 @@ int main( void )
 {
   unsigned int a;
   unsigned char b;
-  for ( a = 0, b = 2; a > b * 1000; a++ ) /* { dg-bogus "comparison between signed and unsigned integer" } */
+  for ( a = 0, b = 2; a > b * 1000; a++ ) /* { dg-bogus "comparison between signed and unsigned integer" "" { xfail { ! int32plus } } } */
     { ; }
 
   return 0;
index 5eb71d9be9efa930821d81e7b7f96de602168cca..12e42b7491d2c8a6da4a23085adeac80ae377e5e 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */ 
-/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-do compile { target int32plus } } */ 
 /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
 
 int foo (int n, int m)
index a76f36fb19613028c1b2733e5198b731e17b5a08..40adfe1a981469303b24d2f13b05da2b2414f49d 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */ 
-/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-do compile { target int32plus } } */ 
 /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
 
 int loop1 (int k)
index 39b526071799d485a36f87c1bcaa045e098a997a..9a03dc17173e8091d66020baf4c2c48568e77f37 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do compile } */ 
-/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-do compile { target int32plus } } */ 
 /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
 
 int loop1 (int k)
index 55e75d48e2b08d8e5d79853185e03d2a755a3e13..7ddcb21921f74fc8a886e803dfb8f8e596975573 100644 (file)
@@ -29,7 +29,7 @@ void init_code ()
   object V658;
 
 T1240:
-if (V648 >= (long)V651) /* { dg-warning "cast from pointer to integer of different size" "" { target { "avr-*-*" } } } */
+if (V648 >= (long)V651) /* { dg-warning "cast from pointer to integer of different size" "" { target { ! int32plus } } } */
     goto T1243;
   V653 = ((char *) V654->v.v_self)[V648];
   V659 = (object) V654 + V653;
index b63051018623ace22fc8a14b552bc3813e8b28f8..55d164fc2878656467cb13ee68c474121ae675ff 100644 (file)
@@ -31,9 +31,9 @@ const char32_t        s32_3[] = L"ab";        /* { dg-error "from incompatible" } */
 
 const char32_t s32_4[0] = U"ab";       /* { dg-warning "chars is too long" } */
 const char32_t s32_5[1] = U"ab";       /* { dg-warning "chars is too long" } */
-const char32_t s32_6[2] = U"ab";
-const char32_t s32_7[3] = U"ab";
-const char32_t s32_8[4] = U"ab";
+const char32_t s32_6[2] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
+const char32_t s32_7[3] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
+const char32_t s32_8[4] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
 
 const wchar_t  sw_0[]  = "ab";         /* { dg-error "from non-wide" } */
 const wchar_t  sw_1[]  = u"ab";
index 372734eae94157900b3f10809945689a028ffe0b..bbe0976a5391b07421573b29a4117aba4dd80224 100644 (file)
@@ -31,9 +31,9 @@ const char32_t        s32_3[] = L"ab";        /* { dg-error "from incompatible" "" { target {
 
 const char32_t s32_4[0] = U"ab";       /* { dg-warning "chars is too long" } */
 const char32_t s32_5[1] = U"ab";       /* { dg-warning "chars is too long" } */
-const char32_t s32_6[2] = U"ab";
-const char32_t s32_7[3] = U"ab";
-const char32_t s32_8[4] = U"ab";
+const char32_t s32_6[2] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
+const char32_t s32_7[3] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
+const char32_t s32_8[4] = U"ab";       /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
 
 const wchar_t  sw_0[]  = "ab";         /* { dg-error "from non-wide" } */
 const wchar_t  sw_1[]  = u"ab";        /* { dg-error "from incompatible" "" { target { ! wchar_t_char16_t_compatible } } } */
index 66e035e2f336ef0ee4a7112411f87f62d317c882..531d21b2694c2bf34234215536300592690de77b 100644 (file)
@@ -1,6 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test incremental initializers for char16_t/char32_t arrays. */
-/* { dg-do run } */
+/* { dg-do run { target int32plus } } */
 /* { dg-options "-std=gnu99" } */
 
 typedef __SIZE_TYPE__ size_t;
index 5fd45bd67afc0bc18c464be1a82632be58f7e9bd..7919faa6371374d944b2d024a9ae0316fad6072d 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char32_t character constants. */
 /* { dg-do run } */
-/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
 /* { dg-options "-std=gnu99 -Wall -Werror" } */
 
 typedef __CHAR32_TYPE__ char32_t;
index 5672a2021e0c331ca44f3c3882a888c53289ef09..3fd1cf1fdf25fae07f3885dca39f78a5fdd43a11 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test the support for char32_t* string constants. */
 /* { dg-do run } */
-/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
 /* { dg-options "-std=gnu99 -Wall -Werror" } */
 
 typedef __CHAR32_TYPE__ char32_t;
index 3d4dc30846532a5c3c939fad6e058120a38a5f40..486d04f946d74c96aae601025b892edd81a5d1de 100644 (file)
@@ -1,7 +1,7 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Test concatenation of char32_t* string literals. */
 /* { dg-do run } */
-/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */
+/* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
 /* { dg-options "-std=gnu99 -Wall -Werror" } */
 
 typedef __CHAR32_TYPE__ char32_t;
index aa7f66a36851761f15a7163c7566341f3261f1c1..34a78da5f4b44cea61e0a3a33f8cbf65b3cad0d3 100644 (file)
@@ -1,6 +1,6 @@
 /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
 /* Expected errors for char32_t character constants. */
-/* { dg-do compile } */
+/* { dg-do compile { target int32plus } } */
 /* { dg-options "-std=gnu99" } */
 
 typedef __CHAR32_TYPE__ char32_t;