mips64el-fix
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 2 Apr 2019 09:57:08 +0000 (10:57 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 2 Apr 2019 09:57:08 +0000 (10:57 +0100)
===================================================================

Gbp-Pq: Name mips64el-fix.diff

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h

index 46e3b181304e691e8881aec44c457d6e892f4ebe..be407dc9928ec081866d17c2d760e07465501222 100644 (file)
@@ -29,7 +29,7 @@
 // are not defined anywhere in userspace headers. Fake them. This seems to work
 // fine with newer headers, too.
 #include <linux/posix_types.h>
-#if defined(__x86_64__) ||  defined(__mips__)
+#if defined(__x86_64__)
 #include <sys/stat.h>
 #else
 #define ino_t __kernel_ino_t
index 10e5a01272b74ec1bddbada497770c092d00a5b7..cfbca02491a60cac4adf963746233d46702d855d 100644 (file)
@@ -84,7 +84,7 @@ namespace __sanitizer {
 #elif defined(__mips__)
   const unsigned struct_kernel_stat_sz =
                  SANITIZER_ANDROID ? FIRST_32_SECOND_64(104, 128) :
-                                     FIRST_32_SECOND_64(160, 216);
+                                     FIRST_32_SECOND_64(144, 104);
   const unsigned struct_kernel_stat64_sz = 104;
 #elif defined(__s390__) && !defined(__s390x__)
   const unsigned struct_kernel_stat_sz = 64;