mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-19 12:59:26 +00:00
Cherry-pick upstream fix to unbreak mips (closes: #1022169) Thanks to YunQiang Su for the patch https://reviews.llvm.org/D135553
This commit is contained in:
parent
23a67d001d
commit
a130b25c41
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -1,6 +1,9 @@
|
||||
llvm-toolchain-15 (1:15.0.3-1~exp3) experimental; urgency=medium
|
||||
|
||||
* Bring back LTO
|
||||
* Cherry-pick upstream fix to unbreak mips (closes: #1022169)
|
||||
Thanks to YunQiang Su for the patch
|
||||
https://reviews.llvm.org/D135553
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 22 Oct 2022 15:48:48 +0200
|
||||
|
||||
|
19
debian/patches/mips/mips-assert-size.diff
vendored
Normal file
19
debian/patches/mips/mips-assert-size.diff
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
Index: llvm-toolchain-15_15.0.3~++20221019061539+4a2c05b05ed0/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp
|
||||
===================================================================
|
||||
--- llvm-toolchain-15_15.0.3~++20221019061539+4a2c05b05ed0.orig/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp
|
||||
+++ llvm-toolchain-15_15.0.3~++20221019061539+4a2c05b05ed0/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
|
||||
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -154,3 +154,4 @@ fix-typo-1018770.diff
|
||||
bolt.patch
|
||||
bolt-disable-emit-relocs.patch
|
||||
D124841-fix-powerpc-miscompile.patch
|
||||
mips/mips-assert-size.diff
|
||||
|
Loading…
Reference in New Issue
Block a user