* configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Jan 2017 08:19:37 +0000 (09:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Jan 2017 08:19:37 +0000 (09:19 +0100)
From-SVN: r244854

libsanitizer/ChangeLog
libsanitizer/configure.tgt

index 70a66cddf6f92578b3ee87ef8164c825a641f3f7..b0a4546f960c94c2eebd5b11b40bcc77ca888a70 100644 (file)
@@ -1,5 +1,7 @@
 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
 
+       * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
+
        PR sanitizer/79168
        * merge.sh (change_comment_headers): Don't remove 2nd and 3rd line
        if the 3rd line doesn't contain 'The LLVM Compiler Infrastructure'
index 8d884f4bf52de90979e0ccf10a3c50c8f1dc5383..c59b2cd919b0505c8dd95db33ba338528cff2db9 100644 (file)
@@ -1,5 +1,5 @@
 # -*- shell-script -*-
-#   Copyright (C) 2012 Free Software Foundation, Inc.
+#   Copyright (C) 2012-2017 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -31,6 +31,11 @@ case "${target}" in
        fi
        ;;
   powerpc*-*-linux*)
+       if test x$ac_cv_sizeof_void_p = x8; then
+               TSAN_SUPPORTED=yes
+               LSAN_SUPPORTED=yes
+               TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo
+       fi
        ;;
   sparc*-*-linux*)
        ;;