Commit cc41e336 by Yury Gribov Committed by Jakub Jelinek

re PR sanitizer/59063 (ASAN: segfault in __interceptor_clock_gettime)

	PR sanitizer/59063
	* lib/asan-dg.exp: Don't add anything to flags if libsanitizer
	has not been found.
	* lib/ubsan-dg.exp: Likewise.  Append to flags also
	-B${gccpath}/libsanitizer/.

From-SVN: r205639
parent 5ddaa744
2013-12-03 Yury Gribov <y.gribov@samsung.com>
PR sanitizer/59063
* lib/asan-dg.exp: Don't add anything to flags if libsanitizer
has not been found.
* lib/ubsan-dg.exp: Likewise. Append to flags also
-B${gccpath}/libsanitizer/.
2013-12-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* gcc.dg/vect/costmodel/ppc/costmodel-slp-34.c: Skip for little
......
......@@ -39,9 +39,9 @@ proc asan_link_flags { paths } {
set shlib_ext [get_shlib_extension]
if { $gccpath != "" } {
append flags " -B${gccpath}/libsanitizer/ "
if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"]
|| [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.${shlib_ext}"] } {
append flags " -B${gccpath}/libsanitizer/ "
append flags " -B${gccpath}/libsanitizer/asan/ "
append flags " -L${gccpath}/libsanitizer/asan/.libs "
append ld_library_path ":${gccpath}/libsanitizer/asan/.libs"
......
......@@ -30,9 +30,10 @@ proc ubsan_link_flags { paths } {
set shlib_ext [get_shlib_extension]
if { $gccpath != "" } {
append flags " -B${gccpath}/libsanitizer/ubsan/ "
if { [file exists "${gccpath}/libsanitizer/ubsan/.libs/libubsan.a"]
|| [file exists "${gccpath}/libsanitizer/ubsan/.libs/libubsan.${shlib_ext}"] } {
append flags " -B${gccpath}/libsanitizer/ "
append flags " -B${gccpath}/libsanitizer/ubsan/ "
append flags " -L${gccpath}/libsanitizer/ubsan/.libs"
append ld_library_path ":${gccpath}/libsanitizer/ubsan/.libs"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment