From: LLVM Packaging Team Date: Sun, 20 Nov 2022 05:54:23 +0000 (+0000) Subject: mips-assert-size X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~3^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c5a9798003011f556af84cc266c1bd8214f907e;p=llvm-toolchain-16.git mips-assert-size =================================================================== Gbp-Pq: Topic mips Gbp-Pq: Name mips-assert-size.diff --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp index bf0f355847..4e40762cff 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp @@ -64,9 +64,12 @@ using namespace __sanitizer; COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct __old_kernel_stat)); #endif -COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); +# if defined(__LP64__) || \ + (!defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS != 64) + COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); +# endif -#if defined(__i386__) +# if defined(__i386__) COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64)); #endif