diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-11-23 16:00:26 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-11-23 16:00:26 +0000 |
commit | ee88e690a27cfbe3cbb2216e50dec455754bc9a2 (patch) | |
tree | a14567480c026683cf12be27a8dd0c65837a7be2 /gcc/emit-rtl.c | |
parent | afa22e29eed02941a7d6d21f539ce5fb8716eba1 (diff) | |
download | gcc-ee88e690a27cfbe3cbb2216e50dec455754bc9a2.tar.gz |
re PR rtl-optimization/55388 (ICE in int_mode_for_mode at stor-layout.c:423)
PR rtl-optimization/55388
* alias.c (nonoverlapping_component_refs_p): Handle bitfields.
* emit-rtl.c (adjust_address_1): Deal with VOIDmode early.
* expmed.c (store_bit_field): Turn the call to adjust_address
into a call to adjust_bitfield_address_size.
From-SVN: r193760
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 27464dab09e..836ff2f5025 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2072,6 +2072,10 @@ adjust_address_1 (rtx memref, enum machine_mode mode, HOST_WIDE_INT offset, = targetm.addr_space.pointer_mode (attrs.addrspace); #endif + /* VOIDmode means no mode change for change_address_1. */ + if (mode == VOIDmode) + mode = GET_MODE (memref); + /* Take the size of non-BLKmode accesses from the mode. */ defattrs = mode_mem_attrs[(int) mode]; if (defattrs->size_known_p) |