[compiler-rt] a4d51e5 - [compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (#68343)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 11:36:27 PDT 2023


Author: PiJoules
Date: 2023-10-06T11:36:22-07:00
New Revision: a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4

URL: https://github.com/llvm/llvm-project/commit/a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4
DIFF: https://github.com/llvm/llvm-project/commit/a4d51e5bf0513eef77ec4c00aaae329ab9c20dd4.diff

LOG: [compiler-rt] Allow Fuchsia to use 64-bit allocator for RISCV (#68343)

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

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 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