Module Name: src Committed By: mrg Date: Fri Aug 11 06:25:17 UTC 2023
Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: make this more like the old lsan_allocator.h change. adds sh3 and vax build support. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.9 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.10 --- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.9 Fri Aug 4 19:25:06 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Fri Aug 11 06:25:17 2023 @@ -51,10 +51,14 @@ struct ChunkMetadata { #if defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \ defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__) || \ - ((defined(__hppa__) || defined(__sparc__)) && !defined(_LP64)) || \ - defined(__mips_o32) || defined(__mips_n32) || defined(__m68k__) || \ - (defined(__riscv__) && !defined(_LP64)) || \ - (defined(__powerpc__) && !defined(__powerpc64__)) + ((defined(__sparc__) || \ + defined(__powerpc__) || \ + defined(__m68k__) || \ + defined(__hppa__) || \ + defined(__sh3__) || \ + defined(__vax__) || \ + defined(__riscv) || \ + defined(__mips__)) && !defined(_LP64)) template <typename AddressSpaceViewTy> struct AP32 { static const uptr kSpaceBeg = 0; @@ -70,8 +74,8 @@ template <typename AddressSpaceView> using PrimaryAllocatorASVT = SizeClassAllocator32<AP32<AddressSpaceView>>; using PrimaryAllocator = PrimaryAllocatorASVT<LocalAddressSpaceView>; #elif defined(__x86_64__) || defined(__powerpc64__) || defined(__s390x__) || \ - defined(__alpha__) || defined(__sparc64__) || defined(__ia64__) || \ - defined(__powerpc64__) || (defined(__riscv__) && !defined(_LP64)) + defined(__sparc64__) || defined(__ia64__) || defined(__alpha__) || \ + defined(__mips64) || defined(__riscv) # if SANITIZER_FUCHSIA const uptr kAllocatorSpace = ~(uptr)0; const uptr kAllocatorSize = 0x40000000000ULL; // 4T.