diff options
author | Martin Liska <mliska@suse.cz> | 2020-06-11 09:34:41 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:12:01 -0300 |
commit | 7e80ba9876ecd4b5bf3494eb9501906420209867 (patch) | |
tree | 107495b1ded4fc15f61e7608d7241e890c8b9d64 /gcc | |
parent | 78de6d172de8d2ab895d2bc4e466d209cec3779a (diff) | |
download | gcc-7e80ba9876ecd4b5bf3494eb9501906420209867.zip gcc-7e80ba9876ecd4b5bf3494eb9501906420209867.tar.gz gcc-7e80ba9876ecd4b5bf3494eb9501906420209867.tar.bz2 |
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>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/asan.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |