From d7d05b864b4cd801d7b79af3fffa3c20a15f68e5 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Tue, 30 Nov 2004 21:37:14 +0000 Subject: [PATCH] * lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if. From-SVN: r91542 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/lib/compat.exp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d2ca8906de0..e1cae621330 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2004-11-30 Janis Johnson + * lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if. + * lib/target-supports.exp (is-effective-target): Simplify. * lib/target-supports.exp (check_effective_target_vect_long): diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp index 9bf71d78d26..79f6f15ef5f 100644 --- a/gcc/testsuite/lib/compat.exp +++ b/gcc/testsuite/lib/compat.exp @@ -200,6 +200,9 @@ proc compat-get-options { src } { global compiler_conditional_xfail_data set compiler_conditional_xfail_data "" + # dg-xfail-if needs access to dg-do-what. + upvar dg-do-what dg-do-what + set tmp [dg-get-options $src] foreach op $tmp { set cmd [lindex $op 0]