projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3747878
)
asan: fix RTX emission for ilp32
author
Martin Liska
<mliska@suse.cz>
Thu, 11 Jun 2020 07:34:41 +0000
(09:34 +0200)
committer
Martin Liska
<mliska@suse.cz>
Thu, 11 Jun 2020 09:02:58 +0000
(11:02 +0200)
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>
gcc/asan.c
patch
|
blob
|
history
diff --git
a/gcc/asan.c
b/gcc/asan.c
index e015fa3ec9b4b33e53a88bbd98b934b711eda239..9c9aa4cae35832c1534a2cffac1d3d13eed0e687 100644
(file)
--- a/
gcc/asan.c
+++ b/
gcc/asan.c
@@
-1613,6
+1613,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);
}