spack/var/spack/repos/builtin/packages/llvm/sanitizer-ipc_perm_mode.patch
Bernhard Kaindl 2d34082b0c
llvm: Fix building llvm@4:9 using %clang@6: and %gcc@10: (#27233)
Add z3 variant, fix @:9%gcc@9: with glibc2.31, fix no_cyclades range
2021-11-29 12:48:18 -08:00

10 lines
541 B
Diff

# ipc_perm.mode is not used and has changed from short to int over architecures
# and versions. The last change was in glibc-2.31.
# LLVM upstream decided to not check ipc_perm.mode below glibc-2.31,
# because it is not actually used in the sanitizer:
# github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -1143,1 +1143,0 @@
-CHECK_SIZE_AND_OFFSET(ipc_perm, mode);