+2014-10-10 Max Ostapenko <m.ostapenko@partner.samsung.com>
+
+ * lib/asan-dg.exp (asan_link_flags): Save ld_library_path.
+ (asan_finish): Remove restore_ld_library_path_env_vars.
+ Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
+ related env variables by calling set_ld_library_path_env_vars.
+ * lib/tsan-dg.exp (tsan_link_flags): Save ld_library_path.
+ (tsan_finish): Remove restore_ld_library_path_env_vars.
+ Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
+ related env variables by calling set_ld_library_path_env_vars.
+ * lib/ubsan-dg.exp (ubsan_link_flags): Save ld_library_path.
+ (ubsan_finish): Remove restore_ld_library_path_env_vars.
+ Restore ld_library_path with saved value. Restore LD_LIBRARY_PATH
+ related env variables by calling set_ld_library_path_env_vars.
+
2014-10-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/63379
global srcdir
global ld_library_path
global shlib_ext
+ global asan_saved_library_path
set gccpath ${paths}
set flags ""
set shlib_ext [get_shlib_extension]
+ set asan_saved_library_path $ld_library_path
if { $gccpath != "" } {
if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"]
global TEST_ALWAYS_FLAGS
global asan_saved_TEST_ALWAYS_FLAGS
global asan_saved_ALWAYS_CXXFLAGS
+ global asan_saved_library_path
+ global ld_library_path
if [info exists asan_saved_ALWAYS_CXXFLAGS ] {
set ALWAYS_CXXFLAGS $asan_saved_ALWAYS_CXXFLAGS
unset TEST_ALWAYS_FLAGS
}
}
- restore_ld_library_path_env_vars
+ set ld_library_path $asan_saved_library_path
+ set_ld_library_path_env_vars
}
# Symbolize lines like
global srcdir
global ld_library_path
global shlib_ext
+ global tsan_saved_library_path
set gccpath ${paths}
set flags ""
set shlib_ext [get_shlib_extension]
+ set tsan_saved_library_path $ld_library_path
if { $gccpath != "" } {
if { [file exists "${gccpath}/libsanitizer/tsan/.libs/libtsan.a"]
global tsan_saved_ALWAYS_CXXFLAGS
global dg-do-what-default
global tsan_saved_dg-do-what-default
+ global tsan_saved_library_path
+ global ld_library_path
if [info exists tsan_saved_ALWAYS_CXXFLAGS ] {
set ALWAYS_CXXFLAGS $tsan_saved_ALWAYS_CXXFLAGS
} else {
unset dg-do-what-default
}
- restore_ld_library_path_env_vars
+ set ld_library_path $tsan_saved_library_path
+ set_ld_library_path_env_vars
}
global srcdir
global ld_library_path
global shlib_ext
+ global ubsan_saved_library_path
set gccpath ${paths}
set flags ""
set shlib_ext [get_shlib_extension]
+ set ubsan_saved_library_path $ld_library_path
if { $gccpath != "" } {
if { [file exists "${gccpath}/libsanitizer/ubsan/.libs/libubsan.a"]
global TEST_ALWAYS_FLAGS
global ubsan_saved_TEST_ALWAYS_FLAGS
global ubsan_saved_ALWAYS_CXXFLAGS
+ global ubsan_saved_library_path
+ global ld_library_path
if [info exists ubsan_saved_ALWAYS_CXXFLAGS ] {
set ALWAYS_CXXFLAGS $ubsan_saved_ALWAYS_CXXFLAGS
unset TEST_ALWAYS_FLAGS
}
}
- restore_ld_library_path_env_vars
+ set ld_library_path $ubsan_saved_library_path
+ set_ld_library_path_env_vars
}