Blame SOURCES/gcc6-libsanitize-aarch64-va42.patch

e21523
2015-01-22  Jakub Jelinek  <jakub@redhat.com>
e21523
e21523
	* sanitizer_common/sanitizer_platform.h
e21523
	(SANITIZER_AARCH64_VMA): Set to 42.
e21523
	(SANITIZER_CAN_USE_ALLOCATOR64): Set to 1 on __aarch64__
e21523
	if SANITIZER_WORDSIZE is 64.
e21523
	(SANITIZER_MMAP_RANGE_SIZE): Define to 1ULL << 42 for
e21523
	__aarch64__.
e21523
e21523
--- libsanitizer/sanitizer_common/sanitizer_platform.h.jj	2015-11-23 13:29:55.000000000 +0100
e21523
+++ libsanitizer/sanitizer_common/sanitizer_platform.h	2016-01-15 12:04:08.511206409 +0100
e21523
@@ -82,7 +82,7 @@
e21523
 // VMA size definition for architecture that support multiple sizes.
e21523
 // AArch64 has 3 VMA sizes: 39, 42 and 48.
e21523
 #if !defined(SANITIZER_AARCH64_VMA)
e21523
-# define SANITIZER_AARCH64_VMA 39
e21523
+# define SANITIZER_AARCH64_VMA 42
e21523
 #else
e21523
 # if SANITIZER_AARCH64_VMA != 39 && SANITIZER_AARCH64_VMA != 42
e21523
 #  error "invalid SANITIZER_AARCH64_VMA size"
e21523
@@ -95,7 +95,7 @@
e21523
 // For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
e21523
 // change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
e21523
 #ifndef SANITIZER_CAN_USE_ALLOCATOR64
e21523
-# if defined(__mips64) || defined(__aarch64__)
e21523
+# if defined(__mips64)
e21523
 #  define SANITIZER_CAN_USE_ALLOCATOR64 0
e21523
 # else
e21523
 #  define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)
e21523
@@ -107,6 +107,8 @@
e21523
 // will still work but will consume more memory for TwoLevelByteMap.
e21523
 #if defined(__mips__)
e21523
 # define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 40)
e21523
+#elif defined(__aarch64__)
e21523
+# define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 42)
e21523
 #else
e21523
 # define SANITIZER_MMAP_RANGE_SIZE FIRST_32_SECOND_64(1ULL << 32, 1ULL << 47)
e21523
 #endif