On 22.01.2020 22:27, Andreas Tobler wrote: > Hi all, > > this patch adds the necessary bits to enable asan support on FreeBSD > x86_64. > Results will be produced over night. > > Ok for trunk once it is open again? > TIA, > Andreas > > gcc/ > > * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET. > * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro. > * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro. > * config/i386/freebsd.h: Likewise. > * config/freebsd.h (LIBASAN_EARLY_SPEC): Define. > LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise. > > libsanitizer: > > * configure.tgt: Add x86_64- and i?86-*-freebsd* targets. > * asan/asan_interceptors.h: Define ASAN_INTERCEPT_SWAPCONTEXT for > FreeBSD. >
Please push the libsanitizer change through LLVM compiler-rt. There was a contract to submit all patches there and merge in GCC.
signature.asc
Description: OpenPGP digital signature