diff mbox series

IBM Z: Enable LSan and TSan

Message ID 20210727200408.120907-1-iii@linux.ibm.com
State New
Headers show
Series IBM Z: Enable LSan and TSan | expand

Commit Message

Ilya Leoshkevich July 27, 2021, 8:04 p.m. UTC
Bootstrapped and regtested on s390x-redhat-linux.  Ok for master?

libsanitizer/ChangeLog:

	* configure.tgt (s390*-*-linux*): Enable LSan and TSan for
	s390x.
---
 libsanitizer/configure.tgt | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andreas Krebbel July 28, 2021, 6:53 a.m. UTC | #1
On 7/27/21 10:04 PM, Ilya Leoshkevich via Gcc-patches wrote:
> Bootstrapped and regtested on s390x-redhat-linux.  Ok for master?
> 
> libsanitizer/ChangeLog:
> 
> 	* configure.tgt (s390*-*-linux*): Enable LSan and TSan for
> 	s390x.

Ok. Thanks!

Andreas
diff mbox series

Patch

diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index 0ca5d9fd924..f635e412bdc 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -41,6 +41,11 @@  case "${target}" in
   sparc*-*-linux*)
 	;;
   s390*-*-linux*)
+	if test x$ac_cv_sizeof_void_p = x8; then
+		TSAN_SUPPORTED=yes
+		LSAN_SUPPORTED=yes
+		TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_s390x.lo
+	fi
 	;;
   sparc*-*-solaris2.11*)
 	;;