testsuite: Save dg-do-what-default in mve.exp
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 29 Apr 2020 09:40:30 +0000 (10:40 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 29 Apr 2020 09:40:30 +0000 (10:40 +0100)
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.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.target/arm/mve.exp

index a8b69a15ccb0878d4ffa34304146d6f9e54ae1ca..c304ddcf2c7c17e29dd2053734e0cb7f238ae1ba 100644 (file)
@@ -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
index 08f8d4d87f61eb9c1faf425801efcd4a9c25c156..e5b4b65eb578166b3d321234c076244f1485da5a 100644 (file)
@@ -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