diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e2b5ff06f46..2e9b9f975e5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-05-16 Jason Merrill + + * lib/scanasm.exp (scan-assembler): Use upvar, not uplevel. + (scan-assembler-not, scan-assembler-dem): Likewise. + (scan-assembler-dem-not): Likewise. + 2002-05-15 Richard Henderson * gcc.dg/weak-5.c (vfoo1c, vfoo1g): Warn here. diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index 9f6d7dabca5..637b298ee42 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -40,7 +40,7 @@ proc scan-assembler { args } { # This assumes that we are two frames down from dg-test, and that # it still stores the filename of the testcase in a local variable "name". # A cleaner solution would require a new dejagnu release. - set testcase [uplevel 2 { expr { $name } }] + upvar 2 name testcase # This must match the rule in gcc-dg.exp. set output_file "[file rootname [file tail $testcase]].s" @@ -75,7 +75,7 @@ proc scan-assembler-not { args } { } } - set testcase [uplevel 2 { expr { $name } }] + upvar 2 name testcase set output_file "[file rootname [file tail $testcase]].s" set fd [open $output_file r] @@ -120,7 +120,7 @@ proc scan-assembler-dem { args } { verbose -log "c++filt is $cxxfilt" } - set testcase [uplevel 2 { expr { $name } }] + upvar 2 name testcase set output_file "[file rootname [file tail $testcase]].s" set fd [open "| $cxxfilt < $output_file" r] @@ -172,7 +172,7 @@ proc scan-assembler-dem-not { args } { verbose -log "c++filt is $cxxfilt" } - set testcase [uplevel 2 { expr { $name } }] + upvar 2 name testcase set output_file "[file rootname [file tail $testcase]].s" set fd [open "| $cxxfilt < $output_file" r]