From: Andrew Stubbs Date: Wed, 26 Sep 2018 15:59:13 +0000 (+0000) Subject: Fix AArch64 ILP32 ICE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1413a4190f3cd17225841f1c0e2bb7842dd6c507;p=gcc.git Fix AArch64 ILP32 ICE. Ensure that the address really is the correct mode for an address. 2018-09-25 Andrew Stubbs gcc/ * builtins.c (get_builtin_sync_mem): Force address mode conversion. From-SVN: r264650 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 134362ea34a..c77532799b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-09-25 Andrew Stubbs + + * builtins.c (get_builtin_sync_mem): Force address mode conversion. + 2018-09-26 Uros Bizjak * config/i386/i386.h (enum reg_class): Remove FP_TOP_SSE_REGS diff --git a/gcc/builtins.c b/gcc/builtins.c index 5f00208ff09..e655623febd 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5850,6 +5850,7 @@ get_builtin_sync_mem (tree loc, machine_mode mode) scalar_int_mode addr_mode = targetm.addr_space.address_mode (addr_space); addr = expand_expr (loc, NULL_RTX, addr_mode, EXPAND_SUM); + addr = convert_memory_address (addr_mode, addr); /* Note that we explicitly do not want any alias information for this memory, so that we kill all other live memories. Otherwise we don't