re PR rtl-optimization/79910 (wrong code with -O -fweb)
authorBernd Schmidt <bernds@redhat.com>
Fri, 17 Mar 2017 15:10:13 +0000 (09:10 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 17 Mar 2017 15:10:13 +0000 (09:10 -0600)
commit4a17943d36f2890fabc5e2f05eb2f8aca4b319c2
treeb6b93ff7ec850cd309e3de2969d25c1e8c288c69
parent7f166d94478f406bc59ed40d9ff24c9d98f30c90
re PR rtl-optimization/79910 (wrong code with -O -fweb)

PR rtl-optimization/79910
* combine.c (record_used_regs): New static function.
(try_combine): Handle situations where there is an additional
instruction between I2 and I3 which needs to have a LOG_LINK
updated.

PR rtl-optimization/79910
* gcc.dg/torture/pr79910.c: New test.

From-SVN: r246226
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79910.c [new file with mode: 0644]