Re: [asan] Target hook for shadow memory offset

2012-10-11 Thread Diego Novillo
On 2012-10-11 10:32 , Jakub Jelinek wrote: 2012-10-11 Jakub Jelinek * 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): Re

Re: [asan] Target hook for shadow memory offset

2012-10-11 Thread H.J. Lu
On Thu, Oct 11, 2012 at 7:32 AM, Jakub Jelinek wrote: > Hi! > > As the shadow memory offset ored into shifted addresses is clearly > target specific (1 << 29 on i?86, 1LL << 44 on x86_64, 0 on ARM?, > no support on other target so far), it should be IMHO a target hook. > > Ok for asan? > > --- gc

[asan] Target hook for shadow memory offset

2012-10-11 Thread Jakub Jelinek
Hi! As the shadow memory offset ored into shifted addresses is clearly target specific (1 << 29 on i?86, 1LL << 44 on x86_64, 0 on ARM?, no support on other target so far), it should be IMHO a target hook. Ok for asan? 2012-10-11 Jakub Jelinek * toplev.c (process_options): Warn and t