public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset
@ 2019-05-23  3:54 Andrew Pinski
  2019-06-03 10:40 ` James Greenhalgh
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pinski @ 2019-05-23  3:54 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Pinski

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,

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset
  2019-05-23  3:54 [PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset Andrew Pinski
@ 2019-06-03 10:40 ` James Greenhalgh
  0 siblings, 0 replies; 2+ messages in thread
From: James Greenhalgh @ 2019-06-03 10:40 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: gcc-patches, nd

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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-03 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23  3:54 [PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset Andrew Pinski
2019-06-03 10:40 ` James Greenhalgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).