aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2015-02-26 12:56:45 +0100
committerUros Bizjak <uros@gcc.gnu.org>2015-02-26 12:56:45 +0100
commit948f9b763d00ae77117179edf1980eb40d284326 (patch)
tree930c20466fefd823ae632d88a0f849212e1bc745 /gcc
parentb24b326283f936111a47350db174620aa1d6115d (diff)
downloadgcc-948f9b763d00ae77117179edf1980eb40d284326.zip
gcc-948f9b763d00ae77117179edf1980eb40d284326.tar.gz
gcc-948f9b763d00ae77117179edf1980eb40d284326.tar.bz2
gcc-dg.exp (cleanup-final-insns-dump): New procedure.
* lib/gcc-dg.exp (cleanup-final-insns-dump): New procedure. * g++.dg/opt/dump1.C (dg-final): Call cleanup-final-insns-dump. From-SVN: r221004
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/g++.dg/opt/dump1.C2
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp15
3 files changed, 24 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8f88646..b1efb2b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-26 Uros Bizjak <ubizjak@gmail.com>
+
+ * lib/gcc-dg.exp (cleanup-final-insns-dump): New procedure.
+ * g++.dg/opt/dump1.C (dg-final): Call cleanup-final-insns-dump.
+
2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
PR target/65161
@@ -209,7 +214,7 @@
2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
- * testsuite/lib/target-supports.exp (check_compile): Save/restore
+ * lib/target-supports.exp (check_compile): Save/restore
additional_sources that may belong to an actual test.
2015-02-18 Jakub Jelinek <jakub@redhat.com>
@@ -695,7 +700,7 @@
Brian Rzycki <b.rzycki@samsung.com>
PR tree-optimization/64878
- * testsuite/gcc.dg/tree-ssa/ssa-dom-thread-8.c: New.
+ * gcc.dg/tree-ssa/ssa-dom-thread-8.c: New.
2015-02-06 Jakub Jelinek <jakub@redhat.com>
@@ -1437,7 +1442,7 @@
2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
- * gcc/testsuite/c-c++-common/tsan/step.c: New testcase.
+ * c-c++-common/tsan/step.c: New testcase.
2015-01-21 Christophe Lyon <christophe.lyon@linaro.org>
diff --git a/gcc/testsuite/g++.dg/opt/dump1.C b/gcc/testsuite/g++.dg/opt/dump1.C
index d90061f..d263f18 100644
--- a/gcc/testsuite/g++.dg/opt/dump1.C
+++ b/gcc/testsuite/g++.dg/opt/dump1.C
@@ -1,7 +1,7 @@
// PR c++/57102
// { dg-options "-O2 -fno-inline -fdump-final-insns" }
// { dg-do compile { target c++11 } }
-// { dg-final cleanup-saved-temps }
+// { dg-final cleanup-final-insns-dump }
namespace std
{
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index 5a9102e..4fa433d 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -548,6 +548,21 @@ proc cleanup-ipa-dump { suffix } {
cleanup-dump "\[0-9\]\[0-9\]\[0-9\]i.$suffix"
}
+# Remove a final insns dump file for the current test.
+proc cleanup-final-insns-dump { } {
+ set testcase [testname-for-summary]
+ # The name might include a list of options; extract the file name.
+ set testcase [lindex $testcase 0]
+ remove-build-file "[file rootname [file tail $testcase]].s.gkd"
+
+ # Clean up files for additional source files.
+ if [info exists additional_sources_used] {
+ foreach srcfile $additional_sources_used {
+ remove-build-file "[file rootname [file tail $srcfile]].s.gkd"
+ }
+ }
+}
+
# Remove a stack usage file for the current test.
proc cleanup-stack-usage { } {
set testcase [testname-for-summary]