Commit b379f677 by Uros Bizjak

gcc-dg.exp (clanup-stack-usage): Really remove .su files.

	* lib/gcc-dg.exp (clanup-stack-usage): Really remove .su files.

From-SVN: r164466
parent 48dbbcd6
2010-09-21 Uros Bizjak <ubizjak@gmail.com>
* lib/gcc-dg.exp (clanup-stack-usage): Really remove .su files.
2010-09-20 Janus Weil <janus@gcc.gnu.org> 2010-09-20 Janus Weil <janus@gcc.gnu.org>
PR fortran/45438 PR fortran/45438
...@@ -8281,7 +8285,7 @@ ...@@ -8281,7 +8285,7 @@
* gfortran.dg/read_x_eof.f90: New test. * gfortran.dg/read_x_eof.f90: New test.
* gfortran.dg/read_x_past.f: Update test. * gfortran.dg/read_x_past.f: Update test.
2010-03-10 Jan Hubicka <jh@suse.cz> 2010-03-10 Jan Hubicka <jh@suse.cz>
* gcc.c-torture/compile/pr43288.c: New test. * gcc.c-torture/compile/pr43288.c: New test.
......
...@@ -200,5 +200,5 @@ end ...@@ -200,5 +200,5 @@ end
! { # Commented out as failing at -O0: dg-final { scan-tree-dump-times "_gfortran_abort" 32 "optimized" } } ! { # Commented out as failing at -O0: dg-final { scan-tree-dump-times "_gfortran_abort" 32 "optimized" } }
! !
! cleanup ! cleanup
! { #dg-final { cleanup-tree-dump "original" } } ! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-tree-dump "optimized" } } ! { dg-final { cleanup-tree-dump "optimized" } }
...@@ -461,8 +461,21 @@ proc cleanup-ipa-dump { suffix } { ...@@ -461,8 +461,21 @@ proc cleanup-ipa-dump { suffix } {
} }
# Remove a stack usage file for the current test. # Remove a stack usage file for the current test.
proc cleanup-stack-usage { args } { proc cleanup-stack-usage { } {
cleanup-dump "su" # This assumes that we are two frames down from dg-test or some other proc
# that stores the filename of the testcase in a local variable "name".
# A cleaner solution would require a new DejaGnu release.
upvar 2 name testcase
# 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]].su"
# Clean up files for additional source files.
if [info exists additional_sources] {
foreach srcfile $additional_sources {
remove-build-file "[file rootname [file tail $srcfile]].su"
}
}
} }
# Remove all dump files with the provided suffix. # Remove all dump files with the provided suffix.
......
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