* lib/gcc-dg.exp (restore-target-env-var): Avoid using lreverse.
From-SVN: r195666
This commit is contained in:
parent
25ef6b0e4f
commit
c050cbe9b4
@ -1,3 +1,7 @@
|
||||
2013-02-01 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* lib/gcc-dg.exp (restore-target-env-var): Avoid using lreverse.
|
||||
|
||||
2013-02-01 David Edelsohn <dje.gcc@gmail.com>
|
||||
|
||||
* gcc.dg/pr56023.c: XFAIL on AIX.
|
||||
|
@ -305,7 +305,9 @@ proc set-target-env-var { } {
|
||||
|
||||
proc restore-target-env-var { } {
|
||||
upvar 1 saved_target_env_var saved_target_env_var
|
||||
foreach env_var [lreverse $saved_target_env_var] {
|
||||
for { set env_vari [llength $saved_target_env_var] } {
|
||||
[incr env_vari -1] >= 0 } {} {
|
||||
set env_var [lindex $saved_target_env_var $env_vari]
|
||||
set var [lindex $env_var 0]
|
||||
if [lindex $env_var 1] {
|
||||
setenv $var [lindex $env_var 2]
|
||||
|
Loading…
Reference in New Issue
Block a user