]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR sanitizer/59063 (ASAN: segfault in __interceptor_clock_gettime)
authorYury Gribov <y.gribov@samsung.com>
Tue, 3 Dec 2013 16:01:13 +0000 (16:01 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Dec 2013 16:01:13 +0000 (17:01 +0100)
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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/asan-dg.exp
gcc/testsuite/lib/ubsan-dg.exp

index 876fb6e0438382f89ac351b635770c5fe477f868..a8ea26cc5277cc6436d1bd3a684533a3efcc447b 100644 (file)
@@ -1,3 +1,11 @@
+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
index 1e6c7ddc02b11527497711644968e0a80b215783..8990677d51e13f52b9d9555e60277cd48039212e 100644 (file)
@@ -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"
index 2e6b272822dbaa30edf5d5fff13a152331eca5af..aa01988f97604421d1ea8a03120f8256df8ebf52 100644 (file)
@@ -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"
       }