Author: Jens Reidel Date: 2025-07-24T11:50:10+02:00 New Revision: 02b2a77edbeecf6a32bb8b71210b0d7d16735fee
URL: https://github.com/llvm/llvm-project/commit/02b2a77edbeecf6a32bb8b71210b0d7d16735fee DIFF: https://github.com/llvm/llvm-project/commit/02b2a77edbeecf6a32bb8b71210b0d7d16735fee.diff LOG: [compiler-rt][Mips] Fix stat size check on mips64 musl (#143301) The sizes of the struct stat on MIPS64 differ in musl vs glibc. See https://godbolt.org/z/qf9bcq8Y8 for the proof. Prior to this change, compilation for MIPS64 musl would fail. Signed-off-by: Jens Reidel <adr...@travitia.xyz> (cherry picked from commit a5d6fa68e399dee9eb56f2671670085b26c06b4a) Added: Modified: compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h Removed: ################################################################################ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h index a2b6c37d5450c..0d1273821d655 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -102,6 +102,8 @@ const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID ? FIRST_32_SECOND_64(104, 128) # if defined(_ABIN32) && _MIPS_SIM == _ABIN32 : FIRST_32_SECOND_64(176, 216); +# elif SANITIZER_MUSL + : FIRST_32_SECOND_64(160, 208); # else : FIRST_32_SECOND_64(160, 216); # endif _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits