freebsd-ports/devel/llvm16/files/patch-lib_sanitizer__common_sanitizer__platform__interceptors.h
Brooks Davis 73fd0eb88d devel/llvm16: copy unchanged from devel/llvm15
This is a copy of llvm15 at 79aeb739c5.
Copying it unmodifed makes it easy to diff to the source.

Sponsored by: DARPA
2023-01-30 23:38:36 +00:00

12 lines
642 B
C

--- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h.orig
+++ compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -576,7 +576,7 @@
#define SANITIZER_INTERCEPT_PTHREAD_ATFORK SI_NETBSD
#define SANITIZER_INTERCEPT_GETENTROPY SI_FREEBSD
#define SANITIZER_INTERCEPT_QSORT \
- (SI_POSIX && !SI_IOSSIM && !SI_WATCHOS && !SI_TVOS && !SI_ANDROID)
+ (SI_POSIX && !SI_IOSSIM && !SI_WATCHOS && !SI_TVOS && !SI_ANDROID && !SI_FREEBSD)
#define SANITIZER_INTERCEPT_QSORT_R SI_GLIBC
// sigaltstack on i386 macOS cannot be intercepted due to setjmp()
// calling it and assuming that it does not clobber registers.