[Bug tree-optimization/81661] [7 Regression] ICE in gimplify_modify_expr, at gimplify.c:5638

2018-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81661

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #12 from Jakub Jelinek  ---
Fixed for 7.4+.

[Bug tree-optimization/81661] [7 Regression] ICE in gimplify_modify_expr, at gimplify.c:5638

2018-03-03 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81661

--- Comment #11 from Jakub Jelinek  ---
Author: jakub
Date: Sat Mar  3 13:25:27 2018
New Revision: 258183

URL: https://gcc.gnu.org/viewcvs?rev=258183=gcc=rev
Log:
Backported from mainline
2018-02-01  Jakub Jelinek  

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.

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

Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr81661.c
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr84117.f90
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/tree-eh.c
branches/gcc-7-branch/gcc/tree-eh.h
branches/gcc-7-branch/gcc/tree-vect-loop.c

[Bug tree-optimization/81661] [7 Regression] ICE in gimplify_modify_expr, at gimplify.c:5638

2018-02-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81661
Bug 81661 depends on bug 84117, which changed state.

Bug 84117 Summary: [8 Regression] ICE in gimplify_modify_expr, at 
gimplify.c:5798
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84117

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug tree-optimization/81661] [7 Regression] ICE in gimplify_modify_expr, at gimplify.c:5638

2018-02-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81661

Jakub Jelinek  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
Summary|[7/8 Regression] ICE in |[7 Regression] ICE in
   |gimplify_modify_expr, at|gimplify_modify_expr, at
   |gimplify.c:5638 |gimplify.c:5638

--- Comment #10 from Jakub Jelinek  ---
Fixed on the trunk so far.