Yury Gribov <y.gri...@samsung.com> writes: > diff --git a/gcc/testsuite/lib/asan-dg.exp b/gcc/testsuite/lib/asan-dg.exp > index e0bf2da..06122e2 100644 > --- a/gcc/testsuite/lib/asan-dg.exp > +++ b/gcc/testsuite/lib/asan-dg.exp > @@ -39,9 +39,9 @@ proc asan_link_flags { paths } { > set shlib_ext [get_shlib_extension] > > if { $gccpath != "" } { > + append flags " -B${gccpath}/libsanitizer/asan/ " > if { [file exists "${gccpath}/libsanitizer/asan/.libs/libasan.a"] > || [file exists > "${gccpath}/libsanitizer/asan/.libs/libasan.${shlib_ext}"] } { > - append flags " -B${gccpath}/libsanitizer/asan/ " > append flags " -L${gccpath}/libsanitizer/asan/.libs " > append ld_library_path ":${gccpath}/libsanitizer/asan/.libs" > } > diff --git a/gcc/testsuite/lib/ubsan-dg.exp b/gcc/testsuite/lib/ubsan-dg.exp > index 4ec5fdf..b7f2b17 100644 > --- a/gcc/testsuite/lib/ubsan-dg.exp > +++ b/gcc/testsuite/lib/ubsan-dg.exp > @@ -30,9 +30,9 @@ 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/ubsan/ " > append flags " -L${gccpath}/libsanitizer/ubsan/.libs" > append ld_library_path ":${gccpath}/libsanitizer/ubsan/.libs" > }
This is causing all the tests being run on all targets, even if libsanitizer is not supported, most of them failing due to link errors. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."