https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112563
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, shall we go with
--- libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h.jj
2023-11-15 12:45:17.359586776 +0100
+++ libsanitizer/sanitizer_common/sanitizer_redefine_builtins.h 2023-11-21
18:29:52.401817763 +0100
@@ -15,7 +15,8 @@
# define SANITIZER_REDEFINE_BUILTINS_H
// The asm hack only works with GCC and Clang.
-# if !defined(_WIN32)
+// It doesn't work when using Solaris as either.
+# if !defined(_WIN32) && !SANITIZER_SOLARIS
asm("memcpy = __sanitizer_internal_memcpy");
asm("memmove = __sanitizer_internal_memmove");
@@ -50,7 +51,7 @@ using vector = Define_SANITIZER_COMMON_N
} // namespace std
# endif // __cpluplus
-# endif // !_WIN32
+# endif // !_WIN32 && !SANITIZER_SOLARIS
# endif // SANITIZER_REDEFINE_BUILTINS_H
#endif // SANITIZER_COMMON_NO_REDEFINE_BUILTINS
then (either as local patch or try to push it upstream)?