Commit 948f9b76 by Uros Bizjak

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
parent b24b3262
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> 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
PR target/65161 PR target/65161
...@@ -209,7 +214,7 @@ ...@@ -209,7 +214,7 @@
2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> 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. additional_sources that may belong to an actual test.
2015-02-18 Jakub Jelinek <jakub@redhat.com> 2015-02-18 Jakub Jelinek <jakub@redhat.com>
...@@ -695,7 +700,7 @@ ...@@ -695,7 +700,7 @@
Brian Rzycki <b.rzycki@samsung.com> Brian Rzycki <b.rzycki@samsung.com>
PR tree-optimization/64878 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> 2015-02-06 Jakub Jelinek <jakub@redhat.com>
...@@ -1437,7 +1442,7 @@ ...@@ -1437,7 +1442,7 @@
2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de> 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> 2015-01-21 Christophe Lyon <christophe.lyon@linaro.org>
......
// PR c++/57102 // PR c++/57102
// { dg-options "-O2 -fno-inline -fdump-final-insns" } // { dg-options "-O2 -fno-inline -fdump-final-insns" }
// { dg-do compile { target c++11 } } // { dg-do compile { target c++11 } }
// { dg-final cleanup-saved-temps } // { dg-final cleanup-final-insns-dump }
namespace std namespace std
{ {
......
...@@ -548,6 +548,21 @@ proc cleanup-ipa-dump { suffix } { ...@@ -548,6 +548,21 @@ proc cleanup-ipa-dump { suffix } {
cleanup-dump "\[0-9\]\[0-9\]\[0-9\]i.$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. # Remove a stack usage file for the current test.
proc cleanup-stack-usage { } { proc cleanup-stack-usage { } {
set testcase [testname-for-summary] set testcase [testname-for-summary]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment