aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2020-01-19 20:38:06 +0100
committerHans-Peter Nilsson <hp@axis.com>2020-01-19 20:38:06 +0100
commit3684bbb022cd75da55e1457673f269980aa12cdf (patch)
treee26b25120e7ca7f3ffece793fdbe15bbea781827 /gcc/testsuite/lib
parent0042bafd4b5eb85ee9610b9558d7b7f00579888c (diff)
downloadgcc-3684bbb022cd75da55e1457673f269980aa12cdf.zip
gcc-3684bbb022cd75da55e1457673f269980aa12cdf.tar.gz
gcc-3684bbb022cd75da55e1457673f269980aa12cdf.tar.bz2
testsuite: effective_target_march_option: support checking for -march=*
* lib/target-supports.exp (effective_target_march_option): New. I see no (other) way to, depending on the absence of an option, add an option for a specific target. For gcc.dg/torture/pr26515.c and cris-elf, you get an error for supplying multiple (different) -march=... options (where that error is desirable), like testing cris-elf with RUNTESTFLAGS=--target_board=cris-sim/arch=v8, where otherwise -march=v10 and -march=v8 will both be given, and the test would fail. For historians, this was accidentally misordered and committed after the (first) patch using march_option. Oops.
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r--gcc/testsuite/lib/target-supports.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 7916698..cdee31e 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2477,6 +2477,10 @@ proc check_effective_target_ti_c64xp { } {
}]
}
+# Check if a -march=... option is given, as part of (earlier) options.
+proc check_effective_target_march_option { } {
+ return [check-flags [list "" { *-*-* } { "-march=*" } { "" } ]]
+}
proc check_alpha_max_hw_available { } {
return [check_runtime alpha_max_hw_available {