diff options
author | Nick Clifton <nickc@redhat.com> | 2009-02-05 11:59:20 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2009-02-05 11:59:20 +0000 |
commit | 5b21d7b23080cbc1972e160dff2c1f72750380a9 (patch) | |
tree | 4e44d254b5dcfbbb9ebe8f4b876de8cd503fa847 | |
parent | bf9b2cc9250862b15f7520c70d689def2cec77c6 (diff) | |
download | gcc-5b21d7b23080cbc1972e160dff2c1f72750380a9.zip gcc-5b21d7b23080cbc1972e160dff2c1f72750380a9.tar.gz gcc-5b21d7b23080cbc1972e160dff2c1f72750380a9.tar.bz2 |
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
22 files changed, 66 insertions, 38 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0381387..6299f28 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/g++.dg/cpp/_Pragma1.C b/gcc/testsuite/g++.dg/cpp/_Pragma1.C index 93d55ee..e44709b 100644 --- a/gcc/testsuite/g++.dg/cpp/_Pragma1.C +++ b/gcc/testsuite/g++.dg/cpp/_Pragma1.C @@ -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)") diff --git a/gcc/testsuite/gcc.c-torture/compile/20080625-1.c b/gcc/testsuite/gcc.c-torture/compile/20080625-1.c index 226bea1..e656cd4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20080625-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20080625-1.c @@ -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]; diff --git a/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c b/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c index c24ad4b..75b824d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c +++ b/gcc/testsuite/gcc.c-torture/compile/limits-stringlit.c @@ -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" diff --git a/gcc/testsuite/gcc.dg/Wconversion-5.c b/gcc/testsuite/gcc.dg/Wconversion-5.c index 2b08845..be749a9 100644 --- a/gcc/testsuite/gcc.dg/Wconversion-5.c +++ b/gcc/testsuite/gcc.dg/Wconversion-5.c @@ -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" } */ } diff --git a/gcc/testsuite/gcc.dg/Wtype-limits-Wextra.c b/gcc/testsuite/gcc.dg/Wtype-limits-Wextra.c index 79fbbd0..f8f528c 100644 --- a/gcc/testsuite/gcc.dg/Wtype-limits-Wextra.c +++ b/gcc/testsuite/gcc.dg/Wtype-limits-Wextra.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/Wtype-limits.c b/gcc/testsuite/gcc.dg/Wtype-limits.c index 5a4605a..5ff9ac0 100644 --- a/gcc/testsuite/gcc.dg/Wtype-limits.c +++ b/gcc/testsuite/gcc.dg/Wtype-limits.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/cdce1.c b/gcc/testsuite/gcc.dg/cdce1.c index 61b19c9..dda5020 100644 --- a/gcc/testsuite/gcc.dg/cdce1.c +++ b/gcc/testsuite/gcc.dg/cdce1.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma6.c b/gcc/testsuite/gcc.dg/cpp/_Pragma6.c index 73f8004..74511a1 100644 --- a/gcc/testsuite/gcc.dg/cpp/_Pragma6.c +++ b/gcc/testsuite/gcc.dg/cpp/_Pragma6.c @@ -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)") diff --git a/gcc/testsuite/gcc.dg/mallign.c b/gcc/testsuite/gcc.dg/mallign.c index 4a64dbb..6a0041e 100644 --- a/gcc/testsuite/gcc.dg/mallign.c +++ b/gcc/testsuite/gcc.dg/mallign.c @@ -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; } diff --git a/gcc/testsuite/gcc.dg/pr11492.c b/gcc/testsuite/gcc.dg/pr11492.c index 9d79f45..4a8b617 100644 --- a/gcc/testsuite/gcc.dg/pr11492.c +++ b/gcc/testsuite/gcc.dg/pr11492.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c b/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c index 5eb71d9..12e42b7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/data-dep-1.c @@ -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) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c index a76f36f..40adfe1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-3.c @@ -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) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c b/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c index 39b5260..9a03dc1 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ldist-5.c @@ -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) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c b/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c index 55e75d4..7ddcb21 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr33920.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/utf-array-short-wchar.c b/gcc/testsuite/gcc.dg/utf-array-short-wchar.c index b630510..55d164f 100644 --- a/gcc/testsuite/gcc.dg/utf-array-short-wchar.c +++ b/gcc/testsuite/gcc.dg/utf-array-short-wchar.c @@ -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"; diff --git a/gcc/testsuite/gcc.dg/utf-array.c b/gcc/testsuite/gcc.dg/utf-array.c index 372734e..bbe0976 100644 --- a/gcc/testsuite/gcc.dg/utf-array.c +++ b/gcc/testsuite/gcc.dg/utf-array.c @@ -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 } } } */ diff --git a/gcc/testsuite/gcc.dg/utf-inc-init.c b/gcc/testsuite/gcc.dg/utf-inc-init.c index 66e035e..531d21b 100644 --- a/gcc/testsuite/gcc.dg/utf-inc-init.c +++ b/gcc/testsuite/gcc.dg/utf-inc-init.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/utf32-1.c b/gcc/testsuite/gcc.dg/utf32-1.c index 5fd45bd..7919faa 100644 --- a/gcc/testsuite/gcc.dg/utf32-1.c +++ b/gcc/testsuite/gcc.dg/utf32-1.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/utf32-2.c b/gcc/testsuite/gcc.dg/utf32-2.c index 5672a20..3fd1cf1 100644 --- a/gcc/testsuite/gcc.dg/utf32-2.c +++ b/gcc/testsuite/gcc.dg/utf32-2.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/utf32-3.c b/gcc/testsuite/gcc.dg/utf32-3.c index 3d4dc30..486d04f 100644 --- a/gcc/testsuite/gcc.dg/utf32-3.c +++ b/gcc/testsuite/gcc.dg/utf32-3.c @@ -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; diff --git a/gcc/testsuite/gcc.dg/utf32-4.c b/gcc/testsuite/gcc.dg/utf32-4.c index aa7f66a..34a78da 100644 --- a/gcc/testsuite/gcc.dg/utf32-4.c +++ b/gcc/testsuite/gcc.dg/utf32-4.c @@ -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; |