diff options
author | Janis Johnson <janis187@us.ibm.com> | 2008-05-12 23:37:59 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2008-05-12 23:37:59 +0000 |
commit | 2ba17291e1d1025140bc59836f34220b38634e33 (patch) | |
tree | e51db747fa245946069a14d979cf5f1722c249fd /gcc | |
parent | ef0a760748172194d349827f5c3e6308ea632b46 (diff) | |
download | gcc-2ba17291e1d1025140bc59836f34220b38634e33.zip gcc-2ba17291e1d1025140bc59836f34220b38634e33.tar.gz gcc-2ba17291e1d1025140bc59836f34220b38634e33.tar.bz2 |
pr11832.c: XFAIL for mips and powerpc-linux, then ignore ICE message to avoid a second failure.
* gcc.c-torture/compile/pr11832.c: XFAIL for mips and powerpc-linux,
then ignore ICE message to avoid a second failure.
* gcc.c-torture/compile/pr33009.c: Ditto.
* lib/gcc-dg.exp: Explain in comment how to XFAIL an ICE.
From-SVN: r135238
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr11832.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr33009.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/gcc-dg.exp | 5 |
4 files changed, 16 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ec62932..1586f48 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-05-12 Janis Johnson <janis187@us.ibm.com> + + * gcc.c-torture/compile/pr11832.c: XFAIL for mips and powerpc-linux, + then ignore ICE message to avoid a second failure. + * gcc.c-torture/compile/pr33009.c: Ditto. + * lib/gcc-dg.exp: Explain in comment how to XFAIL an ICE. + 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com> * gcc.dg/pr34457-1.c: Skip for target without trampolines. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr11832.c b/gcc/testsuite/gcc.c-torture/compile/pr11832.c index efb46e0..4eba49f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr11832.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr11832.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* Currently ICEs for MIPS; see PR33642. */ -/* { dg-skip-if "PR33642" { mips*-*-* } { "*" } { "" } } */ +/* Currently ICEs for MIPS and PowerPC; see PR33642. */ +/* { dg-xfail-if "PR33642" { mips*-*-* powerpc*-*-linux* } { "*" } { "" } } */ +/* { dg-prune-output ".*internal compiler error.*" } /* { dg-options "-frtl-abstract-sequences" } */ int a, b, e; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr33009.c b/gcc/testsuite/gcc.c-torture/compile/pr33009.c index 8046e09..811fdb5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr33009.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr33009.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ -/* Currently ICEs for MIPS; see PR33642. */ -/* { dg-skip-if "PR33642" { mips*-*-* } { "*" } { "" } } */ +/* Currently ICEs for MIPS and PowerPC; see PR33642. */ +/* { dg-xfail-if "PR33642" { mips*-*-* powerpc*-*-linux* } { "*" } { "" } } */ +/* { dg-prune-output ".*internal compiler error.*" } /* { dg-options "-frtl-abstract-sequences" } */ char *progName; diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index a40a99b..1d46213 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -140,8 +140,9 @@ proc gcc-dg-test-1 { target_compile prog do_what extra_tool_flags } { set comp_output [$target_compile "$prog" "$output_file" "$compile_type" $options] # Look for an internal compiler error, which sometimes masks the fact - # that we didn't get an expected error message. An ICE always fails, - # there's no way to XFAIL it. + # that we didn't get an expected error message. XFAIL an ICE via + # dg-xfail-if and use { dg-prune-output ".*internal compiler error.*" } + # to avoid a second failure for excess errors. if [string match "*internal compiler error*" $comp_output] { upvar 2 name name fail "$name (internal compiler error)" |