public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: chenglulu <chenglulu@loongson.cn>
To: gcc-patches@gcc.gnu.org, jakub@redhat.com
Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn,
	chenguoqi <chenguoqi@loongson.cn>
Subject: Re: [PATCH] LoongArch: libsanitizer: Enable build lsan and tsan for loongarch64.
Date: Fri, 2 Feb 2024 09:37:52 +0800	[thread overview]
Message-ID: <d800cee3-7d15-e735-24df-bfc8605558fc@loongson.cn> (raw)
In-Reply-To: <20240130020951.18469-1-chenglulu@loongson.cn>

Ping?

在 2024/1/30 上午10:09, Lulu Cheng 写道:
> From: chenguoqi <chenguoqi@loongson.cn>
>
> libsanitizer/ChangeLog:
>
> 	* configure.tgt: Enable tsan and lsan for loongarch64.
> 	* tsan/Makefile.am: Add tsan_rtl_loongarch64.S to EXTRA_libtsan_la_SOURCES.
> 	* tsan/Makefile.in: Regenerate.
> ---
>   libsanitizer/configure.tgt    | 5 +++++
>   libsanitizer/tsan/Makefile.am | 2 +-
>   libsanitizer/tsan/Makefile.in | 3 ++-
>   3 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
> index 38fc7001ff7..77a0e68222b 100644
> --- a/libsanitizer/configure.tgt
> +++ b/libsanitizer/configure.tgt
> @@ -79,6 +79,11 @@ case "${target}" in
>   	fi
>   	;;
>     loongarch64-*-linux*)
> +	if test x$ac_cv_sizeof_void_p = x8; then
> +		TSAN_SUPPORTED=yes
> +		LSAN_SUPPORTED=yes
> +		TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_loongarch64.lo
> +	fi
>   	;;
>     *)
>   	UNSUPPORTED=1
> diff --git a/libsanitizer/tsan/Makefile.am b/libsanitizer/tsan/Makefile.am
> index cb8bf2e705e..e8fca16be5f 100644
> --- a/libsanitizer/tsan/Makefile.am
> +++ b/libsanitizer/tsan/Makefile.am
> @@ -50,7 +50,7 @@ tsan_files = \
>   	tsan_vector_clock.cpp
>   
>   libtsan_la_SOURCES = $(tsan_files)
> -EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S tsan_rtl_s390x.S tsan_rtl_riscv64.S
> +EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_loongarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S tsan_rtl_s390x.S tsan_rtl_riscv64.S
>   libtsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
>   libtsan_la_DEPENDENCIES = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la $(TSAN_TARGET_DEPENDENT_OBJECTS)
>   if LIBBACKTRACE_SUPPORTED
> diff --git a/libsanitizer/tsan/Makefile.in b/libsanitizer/tsan/Makefile.in
> index 5cc6f95a40a..5bbdf3915b8 100644
> --- a/libsanitizer/tsan/Makefile.in
> +++ b/libsanitizer/tsan/Makefile.in
> @@ -456,7 +456,7 @@ tsan_files = \
>   	tsan_vector_clock.cpp
>   
>   libtsan_la_SOURCES = $(tsan_files)
> -EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S tsan_rtl_s390x.S tsan_rtl_riscv64.S
> +EXTRA_libtsan_la_SOURCES = tsan_rtl_amd64.S tsan_rtl_aarch64.S tsan_rtl_loongarch64.S tsan_rtl_mips64.S tsan_rtl_ppc64.S tsan_rtl_s390x.S tsan_rtl_riscv64.S
>   libtsan_la_LIBADD =  \
>   	$(top_builddir)/sanitizer_common/libsanitizer_common.la \
>   	$(top_builddir)/interception/libinterception.la \
> @@ -614,6 +614,7 @@ distclean-compile:
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_aarch64.Plo@am__quote@
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_access.Plo@am__quote@
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_amd64.Plo@am__quote@
> +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_loongarch64.Plo@am__quote@
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_mips64.Plo@am__quote@
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_mutex.Plo@am__quote@
>   @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tsan_rtl_ppc64.Plo@am__quote@


  reply	other threads:[~2024-02-02  1:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-30  2:09 Lulu Cheng
2024-02-02  1:37 ` chenglulu [this message]
2024-02-02 10:01 ` Jakub Jelinek
2024-02-04  1:24   ` chenglulu
2024-02-06  1:40   ` chenglulu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d800cee3-7d15-e735-24df-bfc8605558fc@loongson.cn \
    --to=chenglulu@loongson.cn \
    --cc=chenguoqi@loongson.cn \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=i@xen0n.name \
    --cc=jakub@redhat.com \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).