2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-03 09:10:36 +08:00

testsuite: Save dg-do-what-default in mve.exp

mve.exp changed the default dg-do action to "assemble", but then
left it like that for later exp files.  This meant that in a
two-multilib test run, the first arm.exp run would have a default
of "dg-do compile" and the second would have a default of
"dg-do assemble".

2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
	* g++.target/arm/mve.exp: Restore the original dg-do-what-default
	before finishing.
This commit is contained in:
Richard Sandiford 2020-04-29 10:40:30 +01:00
parent 5916f2f673
commit b5620fadc5
2 changed files with 7 additions and 0 deletions
gcc/testsuite
ChangeLog
g++.target/arm

@ -1,3 +1,8 @@
2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
* g++.target/arm/mve.exp: Restore the original dg-do-what-default
before finishing.
2020-04-29 Jakub Jelinek <jakub@redhat.com>
PR target/94707

@ -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 -m(cpu|arch)=.* switch"
set save-dg-do-what-default ${dg-do-what-default}
set dg-do-what-default "assemble"
# Initialize `dg'.
@ -45,5 +46,6 @@ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/../../gcc.target/arm/mve/int
"" $DEFAULT_CXXFLAGS
# All done.
set dg-do-what-default ${save-dg-do-what-default}
set dg_runtest_extra_prunes ""
dg-finish