public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-8672] asan: fix RTX emission for ilp32
@ 2020-06-12 8:17 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2020-06-12 8:17 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:187c96ea5310cef1977d8a44b0b9a6b561b6c8c7
commit r9-8672-g187c96ea5310cef1977d8a44b0b9a6b561b6c8c7
Author: Martin Liska <mliska@suse.cz>
Date: Thu Jun 11 09:34:41 2020 +0200
asan: fix RTX emission for ilp32
gcc/ChangeLog:
PR sanitizer/95634
* asan.c (asan_emit_stack_protection): Fix emission for ilp32
by using Pmode instead of ptr_mode.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
(cherry picked from commit 8cff672cb9a132d3d3158c2edfc9a64b55292b80)
Diff:
---
gcc/asan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/asan.c b/gcc/asan.c
index fdbdb6ae15a..2baf06ffa7c 100644
--- a/gcc/asan.c
+++ b/gcc/asan.c
@@ -1612,6 +1612,7 @@ asan_emit_stack_protection (rtx base, rtx pbase, unsigned int alignb,
mem = adjust_address (mem, ptr_mode, offset);
rtx addr = gen_reg_rtx (ptr_mode);
emit_move_insn (addr, mem);
+ addr = convert_memory_address (Pmode, addr);
mem = gen_rtx_MEM (QImode, addr);
emit_move_insn (mem, const0_rtx);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-12 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-12 8:17 [gcc r9-8672] asan: fix RTX emission for ilp32 Martin Liska
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).