aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-12-18 15:19:54 +0100
committerAndreas Schwab <schwab@suse.de>2024-01-02 18:52:30 +0100
commitae11ee8f85c359714a15d234a577486acb8e8987 (patch)
treee443cf31be8ec41bd367b53a0ffa65826647e272 /libsanitizer
parent046cea56fd1e8bc52681baef3f68164482b3fe90 (diff)
downloadgcc-ae11ee8f85c359714a15d234a577486acb8e8987.zip
gcc-ae11ee8f85c359714a15d234a577486acb8e8987.tar.gz
gcc-ae11ee8f85c359714a15d234a577486acb8e8987.tar.bz2
libsanitizer: Enable LSan and TSan for riscv64
libsanitizer: * configure.tgt (riscv64-*-linux*): Enable LSan and TSan.
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/configure.tgt5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index d24566a..38fc700 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -72,6 +72,11 @@ case "${target}" in
x86_64-*-solaris2.11* | i?86-*-solaris2.11*)
;;
riscv64-*-linux*)
+ if test x$ac_cv_sizeof_void_p = x8; then
+ TSAN_SUPPORTED=yes
+ LSAN_SUPPORTED=yes
+ TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_riscv64.lo
+ fi
;;
loongarch64-*-linux*)
;;