re PR tree-optimization/79721 (Scalar evolution introduces signed overflow)
authorRichard Biener <rguenther@suse.de>
Wed, 1 Mar 2017 08:54:29 +0000 (08:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Mar 2017 08:54:29 +0000 (08:54 +0000)
commit0100ae430272feaa208b02c32e52d530cd9c8644
tree3b167ee4b1cb343efed56678dfe72ddc8e9d0d52
parente3e9e8ca83de62be68d8b589e9ddf9638f0e8366
re PR tree-optimization/79721 (Scalar evolution introduces signed overflow)

2017-03-01  Richard Biener  <rguenther@suse.de>

PR middle-end/79721
* tree-chrec.c (chrec_evaluate): Perform computation of Newtons
interpolating formula in wrapping arithmetic.
(chrec_apply): Convert chrec_evaluate return value to wanted type.

* gcc.dg/torture/pr79721.c: New testcase.

From-SVN: r245803
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr79721.c [new file with mode: 0644]
gcc/tree-chrec.c