On Thu, May 23, 2019 at 04:54:30AM +0100, Andrew Pinski wrote: > aarch64_asan_shadow_offset is using the wrong > offset for ILP32. Change it to be a decent one. > > OK? Bootstrapped and tested on aarch64-linux-gnu > with no regressions,
OK. Thanks, James > > Thanks, > Andrew Pinski > > ChangeLog: > * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): > Fix ILP32 value. > --- > gcc/config/aarch64/aarch64.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c > index 3d872438..e5fefe93 100644 > --- a/gcc/config/aarch64/aarch64.c > +++ b/gcc/config/aarch64/aarch64.c > @@ -17258,7 +17258,10 @@ aarch64_expand_subvti (rtx op0, rtx low_dest, rtx > low_in1, > static unsigned HOST_WIDE_INT > aarch64_asan_shadow_offset (void) > { > - return (HOST_WIDE_INT_1 << 36); > + if (TARGET_ILP32) > + return (HOST_WIDE_INT_1 << 29); > + else > + return (HOST_WIDE_INT_1 << 36); > } > > static rtx > -- > 1.8.3.1 >