public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5928] libsanitizer: Only use assembler symbol assignment if supported [PR112563]
@ 2023-11-28 13:56 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2023-11-28 13:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:33b6ce99b54917a910b59dbd643fd223fbba834c

commit r14-5928-g33b6ce99b54917a910b59dbd643fd223fbba834c
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Tue Nov 28 14:55:52 2023 +0100

    libsanitizer: Only use assembler symbol assignment if supported [PR112563]
    
    This patch only enables symbol assignment if the configure test determined
    it's supported.
    
    Bootstrapped without regressions on sparc-sun-solaris2.11 (as and gas) and
    i386-pc-solaris2.11 (as and gas).
    
    2023-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            libsanitizer:
            PR sanitizer/112563
            * sanitizer_common/sanitizer_redefine_builtins.h: Check
            HAVE_AS_SYM_ASSIGN.

Diff:
---
 libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h b/libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h
index d24b179ef32..eba8e0fa0cc 100644
--- a/libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h
+++ b/libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h
@@ -15,7 +15,7 @@
 #    define SANITIZER_REDEFINE_BUILTINS_H
 
 // The asm hack only works with GCC and Clang.
-#    if !defined(_WIN32)
+#    if !defined(_WIN32) && defined(HAVE_AS_SYM_ASSIGN)
 
 asm("memcpy = __sanitizer_internal_memcpy");
 asm("memmove = __sanitizer_internal_memmove");
@@ -50,7 +50,7 @@ using vector = Define_SANITIZER_COMMON_NO_REDEFINE_BUILTINS_in_cpp_file;
 }  // namespace std
 
 #      endif  // __cpluplus
-#    endif    // !_WIN32
+#    endif    // !_WIN32 && HAVE_AS_SYM_ASSIGN
 
 #  endif  // SANITIZER_REDEFINE_BUILTINS_H
 #endif    // SANITIZER_COMMON_NO_REDEFINE_BUILTINS

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-28 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 13:56 [gcc r14-5928] libsanitizer: Only use assembler symbol assignment if supported [PR112563] Rainer Orth

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).