re PR testsuite/25352 (xfail within dg-do command has no effect)
authorJanis Johnson <janis187@us.ibm.com>
Thu, 1 Nov 2007 16:22:36 +0000 (16:22 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 1 Nov 2007 16:22:36 +0000 (16:22 +0000)
gcc/
PR testsuite/25352
* doc/sourcebuild.texi (Test Directives): Document that xfail
has no effect for dg-do except when dg-do-what is "run".

libstdc++-v3/
PR testsuite/25352
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
Remove xfail from dg-do and add dg-skip-if.

gcc/testsuite/
PR testsuite/25352
* gcc.c-torture/compile/20000804-1.c: Remove xfail from dg-do and
add dg-skip-if.
* gcc.c-torture/compile/20001205-1.c: Ditto.
* gcc.c-torture/compile/20001226-1.c: Ditto.
* gcc.c-torture/compile/20020312-1.c: Ditto.
* gcc.c-torture/compile/20020604-1.c: Ditto.
* gcc.c-torture/compile/920501-12.c: Ditto.
* gcc.c-torture/compile/920501-4.c: Ditto.
* gcc.c-torture/compile/920520-1.c: Ditto.
* gcc.c-torture/compile/980506-1.c: Ditto.
* gcc.c-torture/compile/990617-1.c: Ditto.
* gcc.dg/compare6.c: Ditto.
* g++.old-deja/g++.brendan/crash43.C: Ditto.
* g++.old-deja/g++.brendan/synth1.C: Ditto.
* g++.old-deja/g++.oliva/dwarf2.C: Ditto.
* g++.old-deja/g++.oliva/dwarf3.C: Ditto.
* g++.old-deja/g++.pt/static6.C: Ditto.
* g++.old-deja/g++.pt/crash16.C: Ditto.
* g++.old-deja/g++.mike/p10416.C: Ditto.
* g++.old-deja/g++.mike/ns15.C: Ditto.
* g++.old-deja/g++.mike/eh46.C: Ditto.

From-SVN: r129823

25 files changed:
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.brendan/crash43.C
gcc/testsuite/g++.old-deja/g++.brendan/synth1.C
gcc/testsuite/g++.old-deja/g++.mike/eh46.C
gcc/testsuite/g++.old-deja/g++.mike/ns15.C
gcc/testsuite/g++.old-deja/g++.mike/p10416.C
gcc/testsuite/g++.old-deja/g++.oliva/dwarf2.C
gcc/testsuite/g++.old-deja/g++.oliva/dwarf3.C
gcc/testsuite/g++.old-deja/g++.pt/crash16.C
gcc/testsuite/g++.old-deja/g++.pt/static6.C
gcc/testsuite/gcc.c-torture/compile/20000804-1.c
gcc/testsuite/gcc.c-torture/compile/20001205-1.c
gcc/testsuite/gcc.c-torture/compile/20001226-1.c
gcc/testsuite/gcc.c-torture/compile/20020312-1.c
gcc/testsuite/gcc.c-torture/compile/20020604-1.c
gcc/testsuite/gcc.c-torture/compile/920501-12.c
gcc/testsuite/gcc.c-torture/compile/920501-4.c
gcc/testsuite/gcc.c-torture/compile/920520-1.c
gcc/testsuite/gcc.c-torture/compile/980506-1.c
gcc/testsuite/gcc.c-torture/compile/990617-1.c
gcc/testsuite/gcc.dg/compare6.c
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc

index 7363e52993695532043c18e3baec5e2907062ec9..d1569fafdc72af7d033956972a58f89374628d7d 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-01  Janis Johnson  <janis187@us.ibm.com>
+
+       PR testsuite/25352
+       * doc/sourcebuild.texi (Test Directives): Document that xfail
+       has no effect for dg-do except when dg-do-what is "run".
+
 2007-11-01  Tom Tromey  <tromey@redhat.com>
 
        * c-decl.c (grokdeclarator): Set decl source locations.
index b4d8b342b61acdd4515d67f0d80194ee21cdfa8a..0a4224ba8b461557dd09f751d852a43b0b7cb053 100644 (file)
@@ -963,10 +963,11 @@ If the directive includes the optional @samp{@{ target @var{selector} @}}
 then the test is skipped unless the target system is included in the
 list of target triplets or matches the effective-target keyword.
 
-If the directive includes the optional @samp{@{ xfail @var{selector} @}}
-and the selector is met then the test is expected to fail.  For
-@code{dg-do run}, execution is expected to fail but compilation
-is expected to pass.
+If @samp{do-what-keyword} is @code{run} and the directive includes
+the optional @samp{@{ xfail @var{selector} @}} and the selector is met
+then the test is expected to fail.  The @code{xfail} clause is ignored
+for other values of @samp{do-what-keyword}; those tests can use
+directive @code{dg-xfail-if}.
 
 @item @{ dg-options @var{options} [@{ target @var{selector} @}] @}
 This DejaGnu directive provides a list of compiler options, to be used
index e42f1ef44682d117725e2b65cd868b067d40f464..8c564151917b14ffe81c35d98c7f7c4336b662cc 100644 (file)
@@ -1,3 +1,28 @@
+2007-11-01  Janis Johnson  <janis187@us.ibm.com>
+
+       PR testsuite/25352
+       * gcc.c-torture/compile/20000804-1.c: Remove xfail from dg-do and
+       add dg-skip-if.
+       * gcc.c-torture/compile/20001205-1.c: Ditto.
+       * gcc.c-torture/compile/20001226-1.c: Ditto.
+       * gcc.c-torture/compile/20020312-1.c: Ditto.
+       * gcc.c-torture/compile/20020604-1.c: Ditto.
+       * gcc.c-torture/compile/920501-12.c: Ditto.
+       * gcc.c-torture/compile/920501-4.c: Ditto.
+       * gcc.c-torture/compile/920520-1.c: Ditto.
+       * gcc.c-torture/compile/980506-1.c: Ditto.
+       * gcc.c-torture/compile/990617-1.c: Ditto.
+       * gcc.dg/compare6.c: Ditto.
+       * g++.old-deja/g++.brendan/crash43.C: Ditto.
+       * g++.old-deja/g++.brendan/synth1.C: Ditto.
+       * g++.old-deja/g++.oliva/dwarf2.C: Ditto.
+       * g++.old-deja/g++.oliva/dwarf3.C: Ditto.
+       * g++.old-deja/g++.pt/static6.C: Ditto.
+       * g++.old-deja/g++.pt/crash16.C: Ditto.
+       * g++.old-deja/g++.mike/p10416.C: Ditto.
+       * g++.old-deja/g++.mike/ns15.C: Ditto.
+       * g++.old-deja/g++.mike/eh46.C: Ditto.
+
 2007-11-01  Tom Tromey  <tromey@redhat.com>
 
        * gcc.dg/redecl-1.c: Update.
index 08be90bc27b2774216b8e458bfec979f3891a172..8c73d70d0bf8cb88842dc1f5e0628b2e8051fbfd 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail sparc64-*-elf } }
+// { dg-do assemble }
+// { dg-xfail-if "" { sparc64-*-elf } { "*" } { "" } }
 // { dg-options "-g" }
 // GROUPS passed old-abort
 extern "C" { typedef int jmp_buf[12]; }
index eed7f9ffb006037d94d030d0b44da73ea69a1633..3a27e63cf04ad1d90541de778818de2f1e7cd8a9 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail sparc64-*-elf } }
+// { dg-do assemble }
+// { dg-xfail-if "" { sparc64-*-elf } { "*" } { "" } }
 // { dg-options "-pedantic-errors -g -Wall" }
 // GROUPS passed synthetics
 // Check to make sure that g++ doesn't get freaked out about the use
index 51c35a7175e31cb179894c1c6975e1ae08f823eb..9785e6ad18990a42488c01d7e6fe941ce47652c0 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail arm-*-pe } }
+// { dg-do assemble }
+// { dg-xfail-if "" { arm-*-pe } { "*" } { "" } }
 // { dg-options "-fexceptions" }
 
 int atoi(const char *);
index 567db4cf60b705e93c492e08ceacb04b6a05ae8b..4e767b8363017e28de9784ab40423ea3cc7ada78 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail xstormy16-*-* } }
+// { dg-do assemble }
+// { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } }
 
 #include <stdio.h>
 #include <stdlib.h>
index af82bd4af8b04cfd6a1004720a67a7b15b83995f..2d21d19dda3eb677f402120fa695449ea18e45f5 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail sparc64-*-elf arm-*-pe } }
+// { dg-do assemble }
+// { dg-xfail-if "" { sparc64-*-elf arm-*-pe } { "*" } { "" } }
 // { dg-options "-fexceptions" }
 // prms-id: 10416
 
index 7b8d44c273d35875f0be11b7f19994942b23b696..4c1db253bbc0871a3337e62599d5c6b99f7bb278 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail i386-pc-solaris* } }
+// { dg-do assemble }
+// { dg-xfail-if "" { i386-pc-solaris* } { "*" } { "" } }
 
 // Copyright (C) 1999 Free Software Foundation
 
index 945d2ec2ea84d5a2ee32bfd5765d34b3e7654914..3c01238a38ea43e3e420d83b37cbbdb2572e66a6 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail i386-pc-solaris* } }
+// { dg-do assemble }
+// { dg-xfail-if "" { i386-pc-solaris* } { "*" } { "" } }
 
 // Copyright (C) 1999 Free Software Foundation
 
index e03f22fd692aea4cc3bad19a2ce1e8c8be410387..aa25c22b862854e92b80800ae4c37e22fc2de509 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do assemble { xfail xstormy16-*-* } }
+// { dg-do assemble }
+// { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } }
 // { dg-options "" }
 
 extern "C" void qsort(void *base, __SIZE_TYPE__ nmemb, __SIZE_TYPE__ size,
index 0866e2e16d79aafca23e66082a4e5461c922860f..a0d255c5f5e114e9843e75f68b0bdc73c572f566 100644 (file)
@@ -1,4 +1,5 @@
-// { dg-do link { xfail *-*-aout *-*-coff *-*-hpux* *-*-hms } }
+// { dg-do link }
+// { dg-xfail-if "" { *-*-aout *-*-coff *-*-hpux* *-*-hms } { "*" } { "" } }
 
 // Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
 
index 842a532658efac9da221d9d13f79c5e45b3e2e84..68db6d36aedf957df20c8bc9899c1f31f51c8e23 100644 (file)
@@ -1,9 +1,10 @@
 /* This does not work on m68hc11 or h8300 due to the use of an asm
    statement to force a 'long long' (64-bits) to go in a register.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* h8300-*-* } } */
+/* { dg-do assemble } */
 /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-skip-if "PIC default" { i?86-*-darwin* } { "*" } { "" } } */
 /* { dg-skip-if "No 64-bit registers" { m32c-*-* } { "*" } { "" } } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* h8300-*-* } { "*" } { "" } } */
 
 /* Copyright (C) 2000, 2003 Free Software Foundation */
 __complex__ long long f ()
index 4a917a2e2d79b093d95bfed46196d6d71d1e13ed..bab7b69ca2b7ddebb70b0ad0c8bccb55fb49cf25 100644 (file)
@@ -1,6 +1,7 @@
 /* This does not work on m68hc11 due to the asm statement which forces
    two 'long' (32-bits) variables to go in registers.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "" } } */
 
 static inline unsigned long rdfpcr(void)
 {
index 9f1645af09933dcadb08c1e431fd942eadfa2049..ddea0aa0bdfb7506237e79b58c2669f67a366789 100644 (file)
@@ -1,7 +1,8 @@
 /* This does not assemble on m68hc11 because the function is larger
    than 64K.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
-/* { dg-xfail-if "jump beyond 128K not supported" "xtensa-*-*" "-O0" "" } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "function larger than 64K" { m6811-*-* } { "*" } { "" } } */
+/* { dg-xfail-if "jump beyond 128K not supported" { xtensa-*-* } { "-O0" } { "" } } */
 /* { dg-skip-if "" { m32c-*-* } { "*" } { "" } } */
 
 /* This testcase exposed two branch shortening bugs on powerpc.  */
index c50e4919a2b192c00aec4f85cca1e8c538b0bed4..182b7b01c79db3c87d0ee5faf03272d5e7441314 100644 (file)
@@ -1,6 +1,7 @@
 /* This does not compile on HC11/HC12 due to the asm which requires
    two 32-bit registers.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "" } } */
 
 /* PR optimization/5892 */
 typedef struct { unsigned long a; unsigned int b, c; } A;
index 61632f725f4829d6b51aa818a81d19e680b81da9..539b9f5b27f10e52f5b413d2f0e6b5015b8b3854 100644 (file)
@@ -1,6 +1,6 @@
-/* The array is too big. */
+/* { dg-do assemble } */
+/* { dg-xfail-if "The array is too big" { "m6811-*-* m6812-*-*" } { "*" } { "" } } */
 /* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
 /* { dg-skip-if "" { m32c-*-* } { } { } } */
 
 /* PR c/6957
index 61ff947270f480e468a141c513b218806acabb61..7eac97246777050c51c74342276cbb476dc29c09 100644 (file)
@@ -1,6 +1,7 @@
 /* This test fails on HC11/HC12 when it is compiled without -mshort because 
    the stack arrays are too large.  Force to use 16-bit ints for it.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "-mshort" } } */
 
 x(x){            return 3 + x;}
 a(x){int y[994]; return 3 + x;}
index f6ddb19b57d59c9f700e52796fe011123a3e4c2e..3481deefedb3ef6f5ad7d4f660598a46dab3bac7 100644 (file)
@@ -1,6 +1,7 @@
 /* This test fails on HC11/HC12 when it is compiled without -mshort because 
    the 'r0' array is too large.  Force to use 16-bit ints for it.  */
-/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "-mshort" } } */
 
 foo ()
 {
index 6837524fdb4b23395785227262b9eb01da5b54fa..af1dc96240566172a41803e1e22f36ff5a211bb7 100644 (file)
@@ -1,3 +1,4 @@
-/* { dg-do compile { xfail m6811-*-* m6812-*-* } } */
+/* { dg-do compile } */
+/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "" } } */
 
 f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));}
index 6cccb1eae81beda6e945d0865d6c2742ad59e7f1..619e18d05e46d167ebe94fe6f5d29241525c3273 100644 (file)
@@ -1,7 +1,8 @@
 /* The arrays are too large for the xstormy16 - won't fit in 16 bits. */
-/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
-/* { dg-do assemble { xfail xstormy16-*-* m6811-*-* m6812-*-* } } */
+/* { dg-do assemble } */
 /* { dg-require-effective-target size32plus } */
+/* { dg-xfail-if "The array too big" { m6811-*-* m6812-*-* } { "*" } { "" } } /*
+/* { dg-xfail-if "The array too big" { h8300-*-* } { "-mno-h" "-mn" } { "" } } */
 
 unsigned char  TIFFFax2DMode[20][256];
 unsigned char  TIFFFax2DNextState[20][256];
index 78a3ec132f56036059250d04d4ebc9fa093cb4d8..e9d3cf336fcf97fd55aabb610e1877db1dda6411 100644 (file)
@@ -1,6 +1,7 @@
 /* 0x70000000 is too large a constant to become a pointer on
    xstormy16. */
-/* { dg-do assemble { xfail xstormy16-*-* } } */
+/* { dg-do assemble } */
+/* { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } } */
 
 int main()
 {
index 72f50207b03c5b226505d956528bad7767254ec4..b6aee8f062c8b30ef83d79ac0c8b392084c12343 100644 (file)
@@ -1,6 +1,7 @@
 /* PR c/2098 */
 /* Test for a warning on comparison on out-of-range data.  */
-/* { dg-do compile { xfail c4x-*-* } } */
+/* { dg-do compile } */
+/* { dg-xfail-if "" { c4x-*-* } { "*" } { "" } } */
 /* { dg-options "-Wtype-limits" } */
 
 signed char sc;
index f2ea755669a910acc75d4105d3eb20f92fadf865..19a17ce77f3a2391d91f2c0d6eb08a4b237a0b30 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-01  Janis Johnson  <janis187@us.ibm.com>
+
+       PR testsuite/25352
+       * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc:
+       Remove xfail from dg-do and add dg-skip-if.
+
 2007-10-31  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_queue.h (queue<>::push(value_type&&)): Replace
index f7b714fbcfafaf6a5d3c529b85bdc95e9e6d7465..dca23e73f6a92f8e989a5824dc819a3910005a65 100644 (file)
@@ -27,7 +27,8 @@
 // invalidate any other reasons why the executable file might be covered by
 // the GNU General Public License.
 
-// { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } } }
+// { dg-do compile }
+// { dg-xfail-if "" { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } { "*" } { "" } }
 // { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } } }
 
 #include <math.h>