[compiler-rt] [compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (PR #68343)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 12:15:57 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
<details>
<summary>Changes</summary>
The allocator should be tuned well enough for Fuchsia+RISCV.
---
Full diff: https://github.com/llvm/llvm-project/pull/68343.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_platform.h (+2-1)
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index c1ca5c9ca44783b..903a71210286e00 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -284,7 +284,8 @@
// 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 || SANITIZER_DRIVERKIT
+# if (SANITIZER_RISCV64 && !SANITIZER_FUCHSIA) || SANITIZER_IOS || \
+ SANITIZER_DRIVERKIT
# define SANITIZER_CAN_USE_ALLOCATOR64 0
# elif defined(__mips64) || defined(__hexagon__)
# define SANITIZER_CAN_USE_ALLOCATOR64 0
``````````
</details>
https://github.com/llvm/llvm-project/pull/68343
More information about the llvm-commits
mailing list