re PR rtl-optimization/79405 (Infinite loop in fwprop)
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 31 Mar 2017 22:49:53 +0000 (00:49 +0200)
committerJeff Law <law@gcc.gnu.org>
Fri, 31 Mar 2017 22:49:53 +0000 (16:49 -0600)
commita5a9046deb1a43c09e53b7e406319ac7936c2e07
treebf4be001d4d273f6547bada534c9faa1206afa85
parenteee3756de395ab6220f78b471a7cd877301455a2
re PR rtl-optimization/79405 (Infinite loop in fwprop)

PR rtl-optimization/79405
* fwprop.c (propagations_left): New variable.
(forward_propagate_into): Decrement it.
(fwprop_init): Initialize it.
(fw_prop): If the variable has reached zero, stop propagating.
(fwprop_addr): Ditto.

gcc/testsuite/
PR rtl-optimization/79405
gcc.dg/pr79405.c: New testcase.

From-SVN: r246627
gcc/ChangeLog
gcc/fwprop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79405.c [new file with mode: 0644]