aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-01-24 09:19:37 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-01-24 09:19:37 +0100
commitc831801da84c52ab1d0677b992f76a131882203f (patch)
tree1aa2810ded5eb5ac0aa6f0b29c02718c65bfcb97 /libsanitizer
parent5f407e5751b1673b5e9604ea5ffe693aa17b47ca (diff)
downloadgcc-c831801da84c52ab1d0677b992f76a131882203f.zip
gcc-c831801da84c52ab1d0677b992f76a131882203f.tar.gz
gcc-c831801da84c52ab1d0677b992f76a131882203f.tar.bz2
* configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
From-SVN: r244854
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/ChangeLog2
-rw-r--r--libsanitizer/configure.tgt7
2 files changed, 8 insertions, 1 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog
index 70a66cd..b0a4546 100644
--- a/libsanitizer/ChangeLog
+++ b/libsanitizer/ChangeLog
@@ -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'
diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index 8d884f4..c59b2cd 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -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*)
;;