diff --git a/compiler-rt/lib/lsan/lsan_allocator.h b/compiler-rt/lib/lsan/lsan_allocator.h --- a/compiler-rt/lib/lsan/lsan_allocator.h +++ b/compiler-rt/lib/lsan/lsan_allocator.h @@ -50,7 +50,11 @@ }; #if defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \ - defined(__arm__) + defined(__arm__) || defined(__m68k__) || defined(__hppa__) || \ + defined(__sh3__) || defined(__vax__) || \ + (defined(__mips64) && !defined(_LP64)) || \ + (defined(__sparc__) && !defined(_LP64)) || \ + (defined(__powerpc__) && !defined(_LP64)) template struct AP32 { static const uptr kSpaceBeg = 0; @@ -65,7 +69,8 @@ template using PrimaryAllocatorASVT = SizeClassAllocator32>; using PrimaryAllocator = PrimaryAllocatorASVT; -#elif defined(__x86_64__) || defined(__powerpc64__) +#elif defined(__x86_64__) || defined(__powerpc64__) || defined(__sparc64__) || \ + defined(__alpha__) || (defined(__mips64) && defined(_LP64)) # if defined(__powerpc64__) const uptr kAllocatorSpace = 0xa0000000000ULL; const uptr kAllocatorSize = 0x20000000000ULL; // 2T.