[RFA]: Silence unwanted testsuite passes / failures
Neil Booth
neil@daikokuya.demon.co.uk
Wed Mar 7 13:34:00 GMT 2001
Got your message just after sending Zack's :-(
Richard Henderson wrote:-
> Works here. This is almost certainly the linker not printing
> a line number: yours doesn't, mine does. So there is no correct
> pass/fail markup outside of a completely unified build tree.
>
> > * g77.f-torture/execute/short.x: XFAIL -Os.
>
> This only fails on x86. Passes elsewhere.
Yes. I'll leave out the instantiate1.C then, that's a shame.
How about the patch below? It XFAILs the Fortran ones on x86
only, and only with some optimisation levels.
Neil.
* g++.old-deja/g++.other/crash31.C: XFAIL.
* g77.f-torture/execute/20010116.x: Conditional XFAIL.
* g77.f-torture/execute/short.x: XFAIL -Os on x86.
* gcc.c-torture/execute/20010123-1.x: XFAIL.
* gcc.c-torture/execute/20010124-1.x: XFAIL.
* gcc.dg/sequence-pt-1.c: XFAIL one test.
Index: g++.old-deja/g++.other/crash31.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.old-deja/g++.other/crash31.C,v
retrieving revision 1.1
diff -u -p -r1.1 crash31.C
--- crash31.C 2000/11/06 12:29:02 1.1
+++ crash31.C 2001/03/07 21:32:44
@@ -1,11 +1,12 @@
// Build don't link:
// Origin: Jakub Jelinek <jakub@redhat.com>
-// crash test - XFAIL *-*-*
+// excess errors test - XFAIL *-*-*
namespace bar
{
struct foo
{
foo();
-}; // ERROR - parse error
+};
+ // ERROR - parse error XFAIL *-*-*
Index: g77.f-torture/execute/20010116.x
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g77.f-torture/execute/20010116.x,v
retrieving revision 1.1
diff -u -p -r1.1 20010116.x
--- 20010116.x 2001/01/15 23:55:39 1.1
+++ 20010116.x 2001/03/07 21:32:46
@@ -1,2 +1,6 @@
-set torture_execute_xfail "i?86-*-*"
+set torture_eval_before_execute {
+ set compiler_conditional_xfail_data {
+ "" "i?86-*-*" { "-O[23s]" } { "" }
+ }
+}
return 0
Index: g77.f-torture/execute/short.x
===================================================================
RCS file: short.x
diff -N short.x
--- /dev/null Tue May 5 13:32:27 1998
+++ short.x Wed Mar 7 13:32:46 2001
@@ -0,0 +1,6 @@
+set torture_eval_before_execute {
+ set compiler_conditional_xfail_data {
+ "" "i?86-*-*" { "-Os" } { "" }
+ }
+}
+return 0
Index: gcc.c-torture/execute/20010123-1.x
===================================================================
RCS file: 20010123-1.x
diff -N 20010123-1.x
--- /dev/null Tue May 5 13:32:27 1998
+++ 20010123-1.x Wed Mar 7 13:32:46 2001
@@ -0,0 +1,2 @@
+set torture_execute_xfail "*-*-*"
+return 0
Index: gcc.c-torture/execute/20010124-1.x
===================================================================
RCS file: 20010124-1.x
diff -N 20010124-1.x
--- /dev/null Tue May 5 13:32:27 1998
+++ 20010124-1.x Wed Mar 7 13:32:46 2001
@@ -0,0 +1,2 @@
+set torture_execute_xfail "*-*-*"
+return 0
Index: gcc.dg/sequence-pt-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/sequence-pt-1.c,v
retrieving revision 1.5
diff -u -p -r1.5 sequence-pt-1.c
--- sequence-pt-1.c 2000/11/24 11:49:46 1.5
+++ sequence-pt-1.c 2001/03/07 21:32:51
@@ -56,7 +56,7 @@ foo (int a, int b, int n, int p, int *pt
ap[a+=1] += a++; /* { dg-warning "undefined" "sequence point warning" } */
a = a++, b = a; /* { dg-warning "undefined" "sequence point warning" } */
b = a, a = a++; /* { dg-warning "undefined" "sequence point warning" } */
- a = (b++ ? n : a) + b; /* { dg-warning "undefined" "sequence point warning" } */
+ a = (b++ ? n : a) + b; /* { dg-warning "undefined" "sequence point warning" { xfail *-*-* } } */
b ? a = a++ : a; /* { dg-warning "undefined" "sequence point warning" } */
b ? a : a = a++; /* { dg-warning "undefined" "sequence point warning" } */
b && (a = a++); /* { dg-warning "undefined" "sequence point warning" } */
More information about the Gcc-patches
mailing list