]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/91173 (ICE: in int_mode_for_mode, at stor-layout.c:403)
authorMatthew Beliveau <mbelivea@redhat.com>
Tue, 23 Jul 2019 15:56:22 +0000 (15:56 +0000)
committerMatthew Beliveau <mbelivea@gcc.gnu.org>
Tue, 23 Jul 2019 15:56:22 +0000 (15:56 +0000)
commit01e83a10874735bcf65fc01671b40f70342074d5
treee8f4ca96292e98d511d9c6343d537531de13b9b5
parentd312963104c2d49a95be9d627a1f107405d34747
re PR rtl-optimization/91173 (ICE: in int_mode_for_mode, at stor-layout.c:403)

PR rtl-optimization/91173

Backported from mainline
2019-07-16  Jeff Law  <law@redhat.com>

PR rtl-optimization/91173
* tree-ssa-address.c (addr_for_mem_ref): If the base is an
SSA_NAME with a constant value, fold its value into the offset
and clear the base before calling gen_addr_rtx.
* g++.dg/pr91173.C: New test.

From-SVN: r273741
gcc/ChangeLog
gcc/testsuite/g++.dg/pr91173.C [new file with mode: 0644]
gcc/tree-ssa-address.c