diff options
author | Maxim Ostapenko <m.ostapenko@samsung.com> | 2017-07-13 07:48:49 +0000 |
---|---|---|
committer | Maxim Ostapenko <chefmax@gcc.gnu.org> | 2017-07-13 10:48:49 +0300 |
commit | 8f4956cadfef8fd4f43fecca65070428a504188d (patch) | |
tree | cbcbf293d29c470c0cd5676d14c314239c404163 /gcc/asan.c | |
parent | 6eecb2932650cab7b3a19cce9e0cc90daf093f12 (diff) | |
download | gcc-8f4956cadfef8fd4f43fecca65070428a504188d.tar.gz |
ASAN: fix ICE in gcc.dg/asan/pr80168.c on aarch64 -mabi=ilp32
gcc/
* asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
during expansion.
* builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
From-SVN: r250176
Diffstat (limited to 'gcc/asan.c')
-rw-r--r-- | gcc/asan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/asan.c b/gcc/asan.c index 95004d734a5..89c2731e8cd 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -1567,9 +1567,10 @@ asan_emit_allocas_unpoison (rtx top, rtx bot, rtx_insn *before) else start_sequence (); rtx ret = init_one_libfunc ("__asan_allocas_unpoison"); + top = convert_memory_address (ptr_mode, top); + bot = convert_memory_address (ptr_mode, bot); ret = emit_library_call_value (ret, NULL_RTX, LCT_NORMAL, ptr_mode, 2, top, - TYPE_MODE (pointer_sized_int_node), bot, - TYPE_MODE (pointer_sized_int_node)); + ptr_mode, bot, ptr_mode); do_pending_stack_adjust (); rtx_insn *insns = get_insns (); |