diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-11-21 23:05:32 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-26 15:07:04 -0500 |
commit | 0e877834085658e5d9a7e29daf2216fdf17bfdd0 (patch) | |
tree | 16ed2d340271e22ead763133c6a828b3a7c9d5d0 /sim/testsuite/mips | |
parent | f8080fb7a44b0a3a9699c188015106bc4b16076f (diff) | |
download | gdb-0e877834085658e5d9a7e29daf2216fdf17bfdd0.zip gdb-0e877834085658e5d9a7e29daf2216fdf17bfdd0.tar.gz gdb-0e877834085658e5d9a7e29daf2216fdf17bfdd0.tar.bz2 |
sim: testsuite: replace global_as_options with ASFLAGS_FOR_TARGET
Only a few tests actually use global_as_options, but we can replace the
sim-specific settings with the dejagnu common ASFLAGS_FOR_TARGET and get
the same result.
Diffstat (limited to 'sim/testsuite/mips')
-rw-r--r-- | sim/testsuite/mips/basic.exp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/testsuite/mips/basic.exp b/sim/testsuite/mips/basic.exp index 352b3b4..ff96a68 100644 --- a/sim/testsuite/mips/basic.exp +++ b/sim/testsuite/mips/basic.exp @@ -27,11 +27,10 @@ proc run_hilo_test {testfile models nops} { # Runs micromips tests by adding -mmicromips to as options proc run_micromips_test { name requested_machs } { - global global_as_options; - set gas_old $global_as_options; - append global_as_options " -mmicromips " + global ASFLAGS_FOR_TARGET + set ASFLAGS_FOR_TARGET "-mmicromips" run_sim_test $name $requested_machs - set global_as_options $gas_old + unset ASFLAGS_FOR_TARGET } # Runs all specified tests |