mips-assert-size
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +0000)
===================================================================

Gbp-Pq: Topic mips
Gbp-Pq: Name mips-assert-size.diff

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp

index bf0f355847cb13332fac82fb756fe2afa068991a..4e40762cff22284f55bc99c28f4ad3cc249ec5d8 100644 (file)
@@ -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