[asan] Target hook for shadow memory offset
Diego Novillo
dnovillo@google.com
Thu Oct 11 16:05:00 GMT 2012
On 2012-10-11 10:32 , Jakub Jelinek wrote:
> 2012-10-11 Jakub Jelinek <jakub@redhat.com>
>
> * toplev.c (process_options): Warn and turn off -fasan
> if not supported by target.
> * asan.c: Include target.h.
> (asan_scale, asan_offset_log_32, asan_offset_log_64,
> asan_offset_log): Removed.
> (build_check_stmt): Use ASAN_SHADOW_SHIFT and
> targetm.asan_shadow_offset ().
> (asan_instrument): Don't initialize asan_offset_log.
> * asan.h (ASAN_SHADOW_SHIFT): Define.
> * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
> * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
> * doc/tm.texi: Regenerated.
> * Makefile.in (asan.o): Depend on $(TARGET_H).
> * config/i386/i386.c (ix86_asan_shadow_offset): New function.
> (TARGET_ASAN_SHADOW_OFFSET): Define.
OK with HJ's suggestion for 64 bit pointer support.
Diego.
More information about the Gcc-patches
mailing list