re PR tree-optimization/90078 (ICE with deep templates caused by overflow)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Tue, 23 Apr 2019 04:07:46 +0000 (04:07 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 23 Apr 2019 04:07:46 +0000 (04:07 +0000)
commit4b5689aa6c285429368b8bc9eef2b186162ff78d
tree8e9b3df727ba818a867f1f45c4bf618bf87b870a
parent9e14603dfeba1fc1d54f2373de20eea7469ee0c3
re PR tree-optimization/90078 (ICE with deep templates caused by overflow)

PR tree-optimization/90078
* tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
checks for infinite_cost overflow.

gcc/testsuite
* gcc/testsuite/g++.dg/tree-ssa/pr90078.C: New test.

Also fix typo in ChangeLog entry for revision 270499.

From-SVN: r270500
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr90078.C [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c