[compiler-rt] Replace assignment w/.set directive (#107667)
These assignment statements are rejected by `llvm-mc --triple=hexagon`, likely because the syntax so strongly resembles hexagon asm mnemonics. The statements were being normalized by llvm-mc into `.set` directives for most architectures, so I assume that this change is a portable one.
This commit is contained in:
@@ -17,9 +17,11 @@
|
||||
// The asm hack only works with GCC and Clang.
|
||||
# if !defined(_WIN32)
|
||||
|
||||
asm("memcpy = __sanitizer_internal_memcpy");
|
||||
asm("memmove = __sanitizer_internal_memmove");
|
||||
asm("memset = __sanitizer_internal_memset");
|
||||
asm(R"(
|
||||
.set memcpy, __sanitizer_internal_memcpy
|
||||
.set memmove, __sanitizer_internal_memmove
|
||||
.set memset, __sanitizer_internal_memset
|
||||
)");
|
||||
|
||||
# if defined(__cplusplus) && \
|
||||
!defined(SANITIZER_COMMON_REDEFINE_BUILTINS_IN_STD)
|
||||
|
||||
Reference in New Issue
Block a user