[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:14:47 PDT 2023


https://github.com/PiJoules created https://github.com/llvm/llvm-project/pull/68343

The allocator should be tuned well enough for Fuchsia+RISCV.

>From 29102c605d1b80166c0e006679e2d815e4103d64 Mon Sep 17 00:00:00 2001
From: Leonard Chan <leonardchan at google.com>
Date: Thu, 5 Oct 2023 19:13:30 +0000
Subject: [PATCH] [compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV

The allocator should be tuned well enough for Fuchsia+RISCV.
---
 compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



More information about the llvm-commits mailing list