[compiler-rt] f6c4808 - [compiler-rt] Allow 64-bit sanitizer allocator to be used if using RISCV64 and Fuchsia
Leonard Chan via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 16:39:04 PDT 2023
Author: Leonard Chan
Date: 2023-05-23T23:38:29Z
New Revision: f6c4808d95221a5838e14474d95c6fe85bb1488a
URL: https://github.com/llvm/llvm-project/commit/f6c4808d95221a5838e14474d95c6fe85bb1488a
DIFF: https://github.com/llvm/llvm-project/commit/f6c4808d95221a5838e14474d95c6fe85bb1488a.diff
LOG: [compiler-rt] Allow 64-bit sanitizer allocator to be used if using RISCV64 and Fuchsia
This way, Fuchsia can use the 64-bit allocator settings in D151157 without changing the default behavior for others.
Differential Revision: https://reviews.llvm.org/D151159
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 764996e57355b..ea703b7e98d44 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -284,7 +284,7 @@
// For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
// change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
-# if SANITIZER_RISCV64 || SANITIZER_IOS
+# if (SANITIZER_RISCV64 && !SANITIZER_FUCHSIA) || SANITIZER_IOS
# define SANITIZER_CAN_USE_ALLOCATOR64 0
# elif defined(__mips64) || defined(__hexagon__)
# define SANITIZER_CAN_USE_ALLOCATOR64 0
More information about the llvm-commits
mailing list