public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libsanitizer: Enable LSan and TSan for riscv64
@ 2024-01-02 13:56 Andreas Schwab
  2024-01-02 16:28 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2024-01-02 13:56 UTC (permalink / raw)
  To: gcc-patches

All new (tsan) tests are working as expected.

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

diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index d24566a2343..38fc7001ff7 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*)
 	;;
-- 
2.43.0


-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] libsanitizer: Enable LSan and TSan for riscv64
  2024-01-02 13:56 [PATCH] libsanitizer: Enable LSan and TSan for riscv64 Andreas Schwab
@ 2024-01-02 16:28 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2024-01-02 16:28 UTC (permalink / raw)
  To: Andreas Schwab, gcc-patches



On 1/2/24 06:56, Andreas Schwab wrote:
> All new (tsan) tests are working as expected.
> 
> 	* configure.tgt (riscv64-*-linux*): Enable LSan and TSan.
OK
Jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-02 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 13:56 [PATCH] libsanitizer: Enable LSan and TSan for riscv64 Andreas Schwab
2024-01-02 16:28 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).