public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Mips: Fix kernel_stat structure size
@ 2022-07-01 12:40 Dimitrije Milosevic
  2022-07-01 12:54 ` Xi Ruoyao
  2022-07-09  1:42 ` Hans-Peter Nilsson
  0 siblings, 2 replies; 12+ messages in thread
From: Dimitrije Milosevic @ 2022-07-01 12:40 UTC (permalink / raw)
  To: gcc-patches; +Cc: Djordje Todorovic, xry111

Fix kernel_stat structure size for non-Android 32-bit Mips.
LLVM currently has this value for the kernel_stat structure size,
as per compiler-rt/lib/sanitizer-common/sanitizer_platform_limits_posix.h.
This also resolves one of the build issues for non-Android 32-bit Mips.

    libsanitizer/ChangeLog:
    
            * sanitizer_common/sanitizer_platform_limits_posix.h: Fix
            kernel_stat structure size for non-Android 32-bit Mips.

---

 libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
index 89772a7e5c0..62a99035db3 100644
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -83,7 +83,7 @@ const unsigned struct_kernel_stat64_sz = 104;
 #elif defined(__mips__)
 const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID
                                            ? FIRST_32_SECOND_64(104, 128)
-                                           : FIRST_32_SECOND_64(144, 216);
+                                           : FIRST_32_SECOND_64(160, 216);
 const unsigned struct_kernel_stat64_sz = 104;
 #elif defined(__s390__) && !defined(__s390x__)
 const unsigned struct_kernel_stat_sz = 64;

---

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-07-14 11:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 12:40 Mips: Fix kernel_stat structure size Dimitrije Milosevic
2022-07-01 12:54 ` Xi Ruoyao
2022-07-01 14:25   ` Dimitrije Milosevic
2022-07-06 11:34     ` Dimitrije Milosevic
2022-07-09  1:42 ` Hans-Peter Nilsson
2022-07-09  1:49   ` Xi Ruoyao
2022-07-09 14:44     ` Hans-Peter Nilsson
2022-07-12  6:42       ` Dimitrije Milosevic
2022-07-12 16:44         ` Hans-Peter Nilsson
2022-07-13  1:21         ` Xi Ruoyao
2022-07-13  2:38         ` Xi Ruoyao
2022-07-14 11:04           ` Dimitrije Milosevic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).