gcc-dg.exp (dg-xfail-if): Do not process conditional xfail data for non-matching...
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Jun 2003 16:10:13 +0000 (16:10 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Jun 2003 16:10:13 +0000 (16:10 +0000)
* lib/gcc-dg.exp (dg-xfail-if): Do not process conditional xfail
data for non-matching targets.
* gcc.c-torture/compile/simd-5.c: Fix typo in conditional xfail.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>
From-SVN: r68272

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/simd-5.c
gcc/testsuite/lib/gcc-dg.exp

index ff02c29a9c4c7f726585b3c7a22a466095d14375..dbb89db63478ae49d2c527d90e150a0a6580e0b6 100644 (file)
@@ -1,3 +1,10 @@
+2003-06-20  Mark Mitchell  <mark@codesourcery.com>
+            Eric Botcazou  <ebotcazou@libertysurf.fr>
+       
+       * lib/gcc-dg.exp (dg-xfail-if): Do not process conditional xfail
+       data for non-matching targets.
+       * gcc.c-torture/compile/simd-5.c: Fix typo in conditional xfail.
+
 2003-06-20  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/10845
index f2abb799455539f0f9ed9e114542a835ca6acf53..d82b504a505ab128561066c64edbc5f2d5abb299 100644 (file)
@@ -1,7 +1,7 @@
 /* On SPARC64/SPARC-V9 it fails, except with -m32. */
 /* { dg-xfail-if "PR target/9200" { "sparc64-*-*" "sparcv9-*-*" } { "*" } { "-m32" } } */
 /* On regular SPARC it doesn't fail, except with -m64. */
-/* { dg-xfail-if "PR target/9200" { "sparc*-*-*" } { "-m64" } { "" } } */
+/* { dg-xfail-if "PR target/9200" { "sparc-*-*" } { "-m64" } { "" } } */
 
 #define vector64 __attribute__((vector_size(8)))
 
index db616d8567f4a2b011064111a993ac141d862acb..827062352f82916ccf5883be2fbc7828170ccf03 100644 (file)
@@ -316,8 +316,11 @@ proc dg-require-dll { args } {
 
 proc dg-xfail-if { args } {
     set args [lreplace $args 0 0]
-    global compiler_conditional_xfail_data
-    set compiler_conditional_xfail_data $args
+    set selector "target [join [lindex $args 1]]"
+    if { [dg-process-target $selector] == "S" } {
+       global compiler_conditional_xfail_data
+       set compiler_conditional_xfail_data $args
+    }
 }