arm: testsuite: restore dg-do-what-default in mve.exp
On Arm, running make check-gcc RUNTESTFLAGS="dwarf2.exp=pr43190.c" with a target list of "arm-qemu{,-mthumb}" results in no errors. But running it with make check-gcc RUNTESTFLAGS="{mve,dwarf2}.exp=pr43190.c" results in unresolved tests while running the thumb variant. The problem is that mve.exp is changing dg-do-what-default to "assemble", but failing to restore the original value once its tests are complete. The result is that all subsequent tests run with an incorrect underlying default value. The fix is easy - save dg-do-what-default and restore it after the tests are complete. gcc/testsuite/ChangeLog: * gcc.target/arm/mve/mve.exp: Save dg-do-what-default before changing it. Restore it once done.
This commit is contained in:
parent
03ac8886e5
commit
6e79fa4a25
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@ global dg_runtest_extra_prunes
|
|||
set dg_runtest_extra_prunes ""
|
||||
lappend dg_runtest_extra_prunes "warning: switch '-m(cpu|arch)=.*' conflicts with switch '-m(cpu|arch)=.*'"
|
||||
|
||||
set saved-dg-do-what-default ${dg-do-what-default}
|
||||
set dg-do-what-default "assemble"
|
||||
|
||||
# Initialize `dg'.
|
||||
|
@ -53,6 +54,8 @@ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/general-c/*.\[cCS\]]] \
|
|||
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
|
||||
"" $DEFAULT_CFLAGS
|
||||
|
||||
set dg-do-what-default ${saved-dg-do-what-default}
|
||||
|
||||
# All done.
|
||||
set dg_runtest_extra_prunes ""
|
||||
dg-finish
|
||||
|
|
Loading…
Add table
Reference in a new issue