diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-04-01 12:36:21 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-04-01 05:36:21 -0700 |
commit | 00c7e24fddb113e87566ede396a0d775664c4afb (patch) | |
tree | ba831bc11cfb590891876af1d836ae5c7f18ce34 | |
parent | 3f293bd0005c8b836e76672c19a034c1b23e46fa (diff) | |
download | gcc-00c7e24fddb113e87566ede396a0d775664c4afb.zip gcc-00c7e24fddb113e87566ede396a0d775664c4afb.tar.gz gcc-00c7e24fddb113e87566ede396a0d775664c4afb.tar.bz2 |
(restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX to its original value...
2009-04-01 H.J. Lu <hongjiu.lu@intel.com>
(restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX
to its original value, or unset if it was not defined.
From-SVN: r145400
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-libpath.exp | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6e723c3..ee6dbb5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-04-01 H.J. Lu <hongjiu.lu@intel.com> + + (restore_ld_library_path_env_vars): Always restore GCC_EXEC_PREFIX + to its original value, or unset if it was not defined. + 2009-03-31 Jason Merrill <jason@redhat.com> * g++.old-deja/g++.other/using9.C: Add expected errors. diff --git a/gcc/testsuite/lib/target-libpath.exp b/gcc/testsuite/lib/target-libpath.exp index c95cba6..6a01d94 100644 --- a/gcc/testsuite/lib/target-libpath.exp +++ b/gcc/testsuite/lib/target-libpath.exp @@ -213,16 +213,16 @@ proc restore_ld_library_path_env_vars { } { global orig_gcc_exec_prefix global env - if { $orig_environment_saved == 0 } { - return - } - if { $orig_gcc_exec_prefix_saved } { setenv GCC_EXEC_PREFIX "$orig_gcc_exec_prefix" } elseif [info exists env(GCC_EXEC_PREFIX)] { unsetenv GCC_EXEC_PREFIX } + if { $orig_environment_saved == 0 } { + return + } + if { $orig_ld_library_path_saved } { setenv LD_LIBRARY_PATH "$orig_ld_library_path" } elseif [info exists env(LD_LIBRARY_PATH)] { |