Commit 5b21d7b2 by Nick Clifton Committed by Nick Clifton

20080625-1.c: Skip for M32C.

        * 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
parent bf9b2cc9
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> 2009-02-05 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/torture/pr31863.C: Generalize dg-timeout-factor. * g++.dg/torture/pr31863.C: Generalize dg-timeout-factor.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// This is supposed to succeed only if // This is supposed to succeed only if
// the target defines HANDLE_PRAGMA_PACK_PUSH_POP // the target defines HANDLE_PRAGMA_PACK_PUSH_POP
// and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. // 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 push bar
#define foo _Pragma ("pack(push)") #define foo _Pragma ("pack(push)")
......
/* { dg-skip-if "too much data" { "avr-*-*" } { "*" } { "" } } */ /* { dg-skip-if "too much data" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
struct peakbufStruct { struct peakbufStruct {
unsigned int lnum [5000]; unsigned int lnum [5000];
int lscan [5000][4000]; int lscan [5000][4000];
......
/* { dg-skip-if "Array too big" { avr-*-* picochip-*-* } { "*" } { "" } } */ /* { dg-skip-if "Array too big" { avr-*-* picochip-*-* m32c-*-* } { "*" } { "" } } */
#define STR2 "012345678901234567890123456789012345678901234567890123456789\ #define STR2 "012345678901234567890123456789012345678901234567890123456789\
0123456789012345678901234567890123456789" 0123456789012345678901234567890123456789"
......
...@@ -19,7 +19,7 @@ void test1 (void) ...@@ -19,7 +19,7 @@ void test1 (void)
unsigned char f = (int) uc; unsigned char f = (int) uc;
signed char g = (int) sc; signed char g = (int) sc;
unsigned char h = (unsigned int) (short int) uc; 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" } */ 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" } */ signed char k = (int) (unsigned short int) ss; /* { dg-warning "may alter its value" } */
} }
......
...@@ -21,11 +21,14 @@ void a (unsigned char x) ...@@ -21,11 +21,14 @@ void a (unsigned char x)
} }
void b (unsigned short x) void b (unsigned short x)
{ { /* { 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 { ! "avr-*-*" } } } */ if (x < 0) return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
if (x >= 0) 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 true" "" { target { ! int32plus } } 27 } */
if (0 > x) 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 { int32plus } } } */
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 } } 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) void c (unsigned int x)
...@@ -58,7 +61,7 @@ void e (unsigned long long x) ...@@ -58,7 +61,7 @@ void e (unsigned long long x)
int test (int 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; return 1;
else else
return 0; return 0;
......
...@@ -21,11 +21,14 @@ void a (unsigned char x) ...@@ -21,11 +21,14 @@ void a (unsigned char x)
} }
void b (unsigned short x) void b (unsigned short x)
{ { /* { 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 { ! "avr-*-*" } } } */ if (x < 0) return;/* { dg-warning "comparison is always false due to limited range of data type" "" { target { int32plus } } } */
if (x >= 0) 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 true" "" { target { ! int32plus } } 27 } */
if (0 > x) 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 { int32plus } } } */
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 } } 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) void c (unsigned int x)
...@@ -58,7 +61,7 @@ void e (unsigned long long x) ...@@ -58,7 +61,7 @@ void e (unsigned long long x)
int test (int 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; return 1;
else else
return 0; return 0;
......
/* { dg-do run } */ /* { 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-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 { scan-tree-dump "cdce1.c:16: note: function call is shrink-wrapped into error conditions\." "cdce" } } */
/* { dg-final { cleanup-tree-dump "cdce" } } */ /* { dg-final { cleanup-tree-dump "cdce" } } */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
/* This is supposed to succeed only if /* This is supposed to succeed only if
the target defines HANDLE_PRAGMA_PACK_PUSH_POP the target defines HANDLE_PRAGMA_PACK_PUSH_POP
and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. */ 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 push bar
#define foo _Pragma ("pack(push)") #define foo _Pragma ("pack(push)")
......
...@@ -9,7 +9,7 @@ typedef int word __attribute__((mode(word))); ...@@ -9,7 +9,7 @@ typedef int word __attribute__((mode(word)));
int main() int main()
{ {
if ((long)malloc (1) & (sizeof(word)-1)) if ((size_t)malloc (1) & (sizeof(word)-1))
abort (); abort ();
return 0; return 0;
} }
...@@ -5,7 +5,7 @@ int main( void ) ...@@ -5,7 +5,7 @@ int main( void )
{ {
unsigned int a; unsigned int a;
unsigned char b; 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; return 0;
......
/* { dg-do compile } */ /* { dg-do compile { target int32plus } } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */ /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
int foo (int n, int m) int foo (int n, int m)
......
/* { dg-do compile } */ /* { dg-do compile { target int32plus } } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
int loop1 (int k) int loop1 (int k)
......
/* { dg-do compile } */ /* { dg-do compile { target int32plus } } */
/* { dg-skip-if "too much code for avr" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */ /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
int loop1 (int k) int loop1 (int k)
......
...@@ -29,7 +29,7 @@ void init_code () ...@@ -29,7 +29,7 @@ void init_code ()
object V658; object V658;
T1240: 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; goto T1243;
V653 = ((char *) V654->v.v_self)[V648]; V653 = ((char *) V654->v.v_self)[V648];
V659 = (object) V654 + V653; V659 = (object) V654 + V653;
......
...@@ -31,9 +31,9 @@ const char32_t s32_3[] = L"ab"; /* { dg-error "from incompatible" } */ ...@@ -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_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_5[1] = U"ab"; /* { dg-warning "chars is too long" } */
const char32_t s32_6[2] = 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"; const char32_t s32_7[3] = U"ab"; /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
const char32_t s32_8[4] = U"ab"; 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_0[] = "ab"; /* { dg-error "from non-wide" } */
const wchar_t sw_1[] = u"ab"; const wchar_t sw_1[] = u"ab";
......
...@@ -31,9 +31,9 @@ const char32_t s32_3[] = L"ab"; /* { dg-error "from incompatible" "" { target { ...@@ -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_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_5[1] = U"ab"; /* { dg-warning "chars is too long" } */
const char32_t s32_6[2] = 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"; const char32_t s32_7[3] = U"ab"; /* { dg-warning "chars is too long" "" { target "m32c-*-*" } } */
const char32_t s32_8[4] = U"ab"; 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_0[] = "ab"; /* { dg-error "from non-wide" } */
const wchar_t sw_1[] = u"ab"; /* { dg-error "from incompatible" "" { target { ! wchar_t_char16_t_compatible } } } */ const wchar_t sw_1[] = u"ab"; /* { dg-error "from incompatible" "" { target { ! wchar_t_char16_t_compatible } } } */
......
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Test incremental initializers for char16_t/char32_t arrays. */ /* Test incremental initializers for char16_t/char32_t arrays. */
/* { dg-do run } */ /* { dg-do run { target int32plus } } */
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
......
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Test the support for char32_t character constants. */ /* Test the support for char32_t character constants. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */ /* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99 -Wall -Werror" } */ /* { dg-options "-std=gnu99 -Wall -Werror" } */
typedef __CHAR32_TYPE__ char32_t; typedef __CHAR32_TYPE__ char32_t;
......
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Test the support for char32_t* string constants. */ /* Test the support for char32_t* string constants. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */ /* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99 -Wall -Werror" } */ /* { dg-options "-std=gnu99 -Wall -Werror" } */
typedef __CHAR32_TYPE__ char32_t; typedef __CHAR32_TYPE__ char32_t;
......
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Test concatenation of char32_t* string literals. */ /* Test concatenation of char32_t* string literals. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-xfail-run-if "PR36470" { "avr-*-*" } { "*" } { "" } } */ /* { dg-xfail-run-if "PR36470" { "avr-*-*" "m32c-*-*" } { "*" } { "" } } */
/* { dg-options "-std=gnu99 -Wall -Werror" } */ /* { dg-options "-std=gnu99 -Wall -Werror" } */
typedef __CHAR32_TYPE__ char32_t; typedef __CHAR32_TYPE__ char32_t;
......
/* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */ /* Contributed by Kris Van Hees <kris.van.hees@oracle.com> */
/* Expected errors for char32_t character constants. */ /* Expected errors for char32_t character constants. */
/* { dg-do compile } */ /* { dg-do compile { target int32plus } } */
/* { dg-options "-std=gnu99" } */ /* { dg-options "-std=gnu99" } */
typedef __CHAR32_TYPE__ char32_t; typedef __CHAR32_TYPE__ char32_t;
......
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