aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2004-12-22 17:51:01 +0000
committerJanis Johnson <janis@gcc.gnu.org>2004-12-22 17:51:01 +0000
commit606145e4e0e54d412059033a6261c53bf11d7b6d (patch)
treed87600d9f7a1481b644fab3a0e7fcd401eec6bbd /gcc/testsuite
parente90f1b9de770f194d1707c80afe7e75def07b873 (diff)
downloadgcc-606145e4e0e54d412059033a6261c53bf11d7b6d.zip
gcc-606145e4e0e54d412059033a6261c53bf11d7b6d.tar.gz
gcc-606145e4e0e54d412059033a6261c53bf11d7b6d.tar.bz2
* lib/gcc-dg.exp (dg-xfail-if): Fix the flags compared against.
From-SVN: r92490
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp27
2 files changed, 28 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ec14576..5f0074a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-22 Janis Johnson <janis187@us.ibm.com>
+
+ * lib/gcc-dg.exp (dg-xfail-if): Fix the flags compared against.
+
2004-12-22 Jan Beulich <jbeulich@novell.com>
* gcc.dg/20040813-1.c: Skip for *-*-netware*.
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index a0162d2..1a08b35 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -426,19 +426,40 @@ proc dg-require-effective-target { args } {
# The first argument is the line number of the dg-skip-if directive
# within the test file. Remaining arguments are as for xfail lists:
# message { targets } { include } { exclude }
+#
+# This tests against multilib flags plus either the default flags for this
+# group of tests or flags specified with a previous dg-options command.
proc dg-skip-if { args } {
set args [lreplace $args 0 0]
- # The target list might be an effective-target keyword, so replace
- # the original list with "*-*-*" if it is matched.
set selector "target [join [lindex $args 1]]"
if { [dg-process-target $selector] == "S" } {
- # The target list matched; now check the flags.
+ # The target list matched; now check the flags. The DejaGnu proc
+ # check_conditional_xfail will look at the options in compiler_flags,
+ # so set that up for this test based on flags we know about. Start
+ # the list with a dummy tool name so the list will match "*" if
+ # there are no flags.
+
+ global compiler_flags
+ upvar dg-extra-tool-flags extra_tool_flags
+
+ set compiler_flags " toolname "
+ append compiler_flags $extra_tool_flags
+ set dest [target_info name]
+ if [board_info $dest exists multilib_flags] {
+ append compiler_flags "[board_info $dest multilib_flags] "
+ }
+
+ # The target list might be an effective-target keyword, so replace
+ # the original list with "*-*-*".
if [check_conditional_xfail [lreplace $args 1 1 "*-*-*"]] {
upvar dg-do-what dg-do-what
skip_test_and_clear_xfail
}
+
+ # Any value in this variable was left over from an earlier test.
+ set compiler_flags ""
}
}