diff options
author | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-26 03:10:43 +0000 |
---|---|---|
committer | janis <janis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-26 03:10:43 +0000 |
commit | dae098c6f7a552906f029e7062848203186dfda4 (patch) | |
tree | f5cd6542f29ec0e5e82054de63def7a401fe8aaf /gcc/testsuite/lib/profopt.exp | |
parent | 42464af0083e2056d7f7363e75e36079768f1d3d (diff) | |
download | gcc-dae098c6f7a552906f029e7062848203186dfda4.tar.gz |
* lib/target-supports-dg.exp (testname-for-summary): New.
* lib/profopt.exp (profopt_execute): Define testname_with_flags.
* lib/gcc-dg.exp (cleanup-coverage-files, cleanup-repo-notes,
cleanup-stack-usage, cleanup-dump, cleanup-saved-temps, scan-module,
scan-module-absence, output-exists, output-exists-not: Use
testname-for-summary.
(dg-test): Clean up testname_with_flags.
* lib/scanasm.exp (scan-assembler, scan-assembler-not, scan-hidden,
scan-not-hidden, scan-file, scan-file-not, scan-stack-usage,
scan-stack-usage-not, scan-assembler-times, scan-assembler-dem,
scan-assembler-dem-not, object-size: Use testname-for-summary.
* lib/gcov.exp (run-gcov): Likewise.
* lib/scandump.exp (scan-dump, scan-dump-times, scan-dump-not,
scan-dump-dem, scan-dump-dem-note): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188972 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/profopt.exp')
-rw-r--r-- | gcc/testsuite/lib/profopt.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp index f0dbee720e5..b74b7cae1e7 100644 --- a/gcc/testsuite/lib/profopt.exp +++ b/gcc/testsuite/lib/profopt.exp @@ -217,6 +217,7 @@ proc profopt-execute { src } { global tool profile_option feedback_option prof_ext perf_ext perf_delta global generate_final_code use_final_code global verbose + global testname_with_flags if ![info exists profile_option] { error "No profile option specified for first compile." @@ -240,6 +241,12 @@ proc profopt-execute { src } { set testcase "[file tail [file dirname $src]]/[file tail $src]" } + # Several procedures access the name of the test with torture flags, + # normally defined in dg-test. Profile optimization tests don't + # use dg-test, so define it here to make it accessible via + # testname-for-summary. + set testname_with_flags $testcase + set executable $tmpdir/[file tail [file rootname $src].x] set basename [file tail $testcase] set base [file rootname $basename] @@ -272,6 +279,7 @@ proc profopt-execute { src } { set extra_flags [profopt-get-options $src] if { [lindex ${dg-do-what} 1 ] == "N" } { unsupported "$src" + unset testname_with_flags verbose "$src not supported on this target, skipping it" 3 return } @@ -437,4 +445,5 @@ proc profopt-execute { src } { remote_file build delete $execname3 } } + unset testname_with_flags } |