re PR rtl-optimization/70263 (ICE at -O1 and above in both 32-bit and 64-bit modes...
authorJeff Law <law@redhat.com>
Fri, 18 Mar 2016 19:30:20 +0000 (13:30 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 18 Mar 2016 19:30:20 +0000 (13:30 -0600)
commit14d7d4be52585b624f1439388ab0dfd5bd3e72c7
tree9cf27aeaf9c3ecf44225affe3b9bc74e867405db
parent0249ef0bfafd5c8ffc2fcf368199dd62b91ea55e
re PR rtl-optimization/70263 (ICE at -O1 and above in both 32-bit and 64-bit modes on x86_64-linux-gnu (segmentation fault))

PR rtl-optimization/70263
* ira.c (memref_used_between_p): Assert we found END in the insn chain.
(update_equiv_regs): When trying to move a store to after the insn
that sets the source of the store, make sure the store occurs after
the insn that sets the source of the store.  When successful note
the REG_EQUIV note created in the dump file.

PR rtl-optimization/70263
* gcc.c-torture/compile/pr70263-1.c: New test.
* gcc.target/i386/pr70263-2.c: New test.

From-SVN: r234344
gcc/ChangeLog
gcc/ira.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr70263-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr70263-2.c [new file with mode: 0644]