diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-24 19:34:59 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-10-24 19:34:59 +0000 |
commit | 487c311c47800cee847b857e32492c80d3a95236 (patch) | |
tree | d80af481289b3aace2d7ce67e738e8f65045ca38 | |
parent | 5933982f31a6d2dc303d80f5cf591a72287c329b (diff) | |
download | gcc-487c311c47800cee847b857e32492c80d3a95236.tar.gz |
* lib/scanasm.exp (scan-assembler, scan-assembler-not,
scan-hidden, scan-not-hidden, scan-file, scan-file-not,
scan-assembler-times, scan-assembler-dem, scan-assembler-dem-not):
Extract first word of $testcase for all upvar uses, in case
$testvar has compiler switches appended.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141350 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/lib/scanasm.exp | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9f82df3fe07..ea653ce4b52 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-10-24 DJ Delorie <dj@redhat.com> + + * lib/scanasm.exp (scan-assembler, scan-assembler-not, + scan-hidden, scan-not-hidden, scan-file, scan-file-not, + scan-assembler-times, scan-assembler-dem, scan-assembler-dem-not): + Extract first word of $testcase for all upvar uses, in case + $testvar has compiler switches appended. + 2008-10-24 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/36038 diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 0621e7d075b..4c2903061aa 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -67,6 +67,7 @@ proc dg-scan { name positive testcase output_file orig_args } { proc scan-assembler { args } { upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" dg-scan "scan-assembler" 1 $testcase $output_file $args @@ -77,6 +78,7 @@ proc scan-assembler { args } { proc scan-assembler-not { args } { upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" dg-scan "scan-assembler-not" 0 $testcase $output_file $args @@ -102,6 +104,7 @@ proc hidden-scan-for { symbol } { proc scan-hidden { args } { upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" set symbol [lindex $args 0] @@ -118,6 +121,7 @@ proc scan-hidden { args } { proc scan-not-hidden { args } { upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" set symbol [lindex $args 0] @@ -132,6 +136,7 @@ proc scan-not-hidden { args } { proc scan-file { output_file args } { upvar 2 name testcase + set testcase [lindex $testcase 0] dg-scan "scan-file" 1 $testcase $output_file $args } @@ -140,6 +145,7 @@ proc scan-file { output_file args } { proc scan-file-not { output_file args } { upvar 2 name testcase + set testcase [lindex $testcase 0] dg-scan "scan-file-not" 0 $testcase $output_file $args } @@ -166,6 +172,7 @@ proc scan-assembler-times { args } { # it still stores the filename of the testcase in a local variable "name". # A cleaner solution would require a new dejagnu release. upvar 2 name testcase + set testcase [lindex $testcase 0] # This must match the rule in gcc-dg.exp. set output_file "[file rootname [file tail $testcase]].s" @@ -215,6 +222,7 @@ proc scan-assembler-dem { args } { } upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" set output [remote_exec host "$cxxfilt" "" "$output_file"] @@ -260,6 +268,7 @@ proc scan-assembler-dem-not { args } { } upvar 2 name testcase + set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].s" set output [remote_exec host "$cxxfilt" "" "$output_file"] |