From: Andrew Pinski Date: Tue, 4 Jun 2019 16:34:31 +0000 (+0000) Subject: AARCH64: ILP32: Fix aarch64_asan_shadow_offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10078f3e1d0cbebc5e6f7f4821d3ad41421ef1e0;p=gcc.git AARCH64: ILP32: Fix aarch64_asan_shadow_offset aarch64_asan_shadow_offset is using the wrong offset for ILP32. Change it to be a decent one. ChangeLog: * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): Fix ILP32 value. From-SVN: r271920 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61299f2cad7..70d1b7d968c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-06-04 Andrew Pinski + + * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): + Fix ILP32 value. + 2019-06-04 Segher Boessenkool * config/rs6000/constraints.md (define_register_constraint "wd"): diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 7acc3227a78..b3c42e210c5 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -17574,7 +17574,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