public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] riscv: update riscv_asan_shadow_offset
@ 2023-05-30 13:58 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-05-30 13:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2a1c036d9aef48d774099b4566bee90b5df2154d

commit 2a1c036d9aef48d774099b4566bee90b5df2154d
Author: Andreas Schwab <schwab@suse.de>
Date:   Sun May 28 12:08:22 2023 +0200

    riscv: update riscv_asan_shadow_offset
    
    gcc/
            PR target/110036
            * config/riscv/riscv.cc (riscv_asan_shadow_offset): Update to
            match libsanitizer.

Diff:
---
 gcc/config/riscv/riscv.cc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 35f96f01203..37e08c04ec6 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -7011,10 +7011,9 @@ riscv_asan_shadow_offset (void)
 {
   /* We only have libsanitizer support for RV64 at present.
 
-     This number must match kRiscv*_ShadowOffset* in the file
-     libsanitizer/asan/asan_mapping.h which is currently 1<<29 for rv64,
-     even though 1<<36 makes more sense.  */
-  return TARGET_64BIT ? (HOST_WIDE_INT_1 << 29) : 0;
+     This number must match ASAN_SHADOW_OFFSET_CONST in the file
+     libsanitizer/asan/asan_mapping.h.  */
+  return TARGET_64BIT ? HOST_WIDE_INT_UC (0xd55550000) : 0;
 }
 
 /* Implement TARGET_MANGLE_TYPE.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-30 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 13:58 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] riscv: update riscv_asan_shadow_offset Jeff Law

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).