diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2018-09-26 15:59:13 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@gcc.gnu.org> | 2018-09-26 15:59:13 +0000 |
commit | 1413a4190f3cd17225841f1c0e2bb7842dd6c507 (patch) | |
tree | 4d7c7158cc038ff2fd8a5e30d3fa924a9bf2dfcf /gcc/builtins.c | |
parent | 0a76bba487f54f1036b4b11f1cdc54582191e836 (diff) | |
download | gcc-1413a4190f3cd17225841f1c0e2bb7842dd6c507.zip gcc-1413a4190f3cd17225841f1c0e2bb7842dd6c507.tar.gz gcc-1413a4190f3cd17225841f1c0e2bb7842dd6c507.tar.bz2 |
Fix AArch64 ILP32 ICE.
Ensure that the address really is the correct mode for an address.
2018-09-25 Andrew Stubbs <ams@codesourcery.com>
gcc/
* builtins.c (get_builtin_sync_mem): Force address mode conversion.
From-SVN: r264650
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 5f00208..e655623 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 |