From 2910660f00c74d12d17e3114870e287804a3332c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 28 May 2023 12:08:22 +0200 Subject: [PATCH] riscv: update riscv_asan_shadow_offset gcc/ PR target/110036 * config/riscv/riscv.cc (riscv_asan_shadow_offset): Update to match libsanitizer. --- gcc/config/riscv/riscv.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 4939d9964db8..dddd72aa2378 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -5600,9 +5600,8 @@ 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; + libsanitizer/asan/asan_mapping.h. */ + return TARGET_64BIT ? HOST_WIDE_INT_UC (0xd55550000) : 0; } /* Initialize the GCC target structure. */ -- 2.47.3