re PR tree-optimization/81661 (ICE in gimplify_modify_expr, at gimplify.c:5638)
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Feb 2018 10:08:26 +0000 (11:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Feb 2018 10:08:26 +0000 (11:08 +0100)
commit31b6733b1628a861de4c545bff40acc97850dbbf
treef42a2adeb53b018ecc56134e5735e062d67b17fa
parenteae4d8fbb529d67428a2b0eba407b975ee13e7d1
re PR tree-optimization/81661 (ICE in gimplify_modify_expr, at gimplify.c:5638)

PR tree-optimization/81661
PR tree-optimization/84117
* tree-eh.h (rewrite_to_non_trapping_overflow): Declare.
* tree-eh.c: Include gimplify.h.
(find_trapping_overflow, replace_trapping_overflow,
rewrite_to_non_trapping_overflow): New functions.
* tree-vect-loop.c: Include tree-eh.h.
(vect_get_loop_niters): Use rewrite_to_non_trapping_overflow.
* tree-data-ref.c: Include tree-eh.h.
(get_segment_min_max): Use rewrite_to_non_trapping_overflow.

* gcc.dg/pr81661.c: New test.
* gfortran.dg/pr84117.f90: New test.

From-SVN: r257284
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81661.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr84117.f90 [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-eh.c
gcc/tree-eh.h
gcc/tree-vect-loop.c