re PR tree-optimization/88964 (ICE in wide_int_to_tree_1, at tree.c:1561)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Jan 2019 08:35:38 +0000 (09:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Jan 2019 08:35:38 +0000 (09:35 +0100)
commit37aa68563b3af16a1623490ae81f0712062f39e0
tree93869e71f9b44de0864469f28a8179d033d501fd
parent4a75460b0099618b2d79ffda615a9516dcd5c224
re PR tree-optimization/88964 (ICE in wide_int_to_tree_1, at tree.c:1561)

PR tree-optimization/88964
* gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
build_zero_cst instead of build_int_cst.  Return false for loop
invariants which honor signed zeros.

* gfortran.dg/pr88964.f90: New test.

From-SVN: r268179
gcc/ChangeLog
gcc/gimple-loop-interchange.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr88964.f90 [new file with mode: 0644]