gcc-dg.exp (set-target-env-var): Change env to ::env.

gcc/testsuite/ChangeLog:

2014-09-03  Max Ostapenko  <m.ostapenko@partner.samsung.com>

	* lib/gcc-dg.exp (set-target-env-var): Change env to ::env.

From-SVN: r214846
This commit is contained in:
Max Ostapenko 2014-09-03 10:16:30 +03:00 committed by Maxim Ostapenko
parent 19c41621fe
commit 869b69b4e9
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-09-03 Max Ostapenko <m.ostapenko@partner.samsung.com>
* lib/gcc-dg.exp (set-target-env-var): Change env to ::env.
2014-09-03 Tobias Burnus <burnus@net-b.de>
PR fortran/61881

View File

@ -300,8 +300,8 @@ proc set-target-env-var { } {
foreach env_var $set_target_env_var {
set var [lindex $env_var 0]
set value [lindex $env_var 1]
if [info exists env($var)] {
lappend saved_target_env_var [list $var 1 $env($var)]
if [info exists ::env($var)] {
lappend saved_target_env_var [list $var 1 $::env($var)]
} else {
lappend saved_target_env_var [list $var 0]
}