[Bug tree-optimization/90090] [7/8 Regression] ICE in mark_reachable_handlers, at tree-eh.c:3938 since r219202

2019-04-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90090

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Tue Apr 30 21:05:39 2019
New Revision: 270752

URL: https://gcc.gnu.org/viewcvs?rev=270752&root=gcc&view=rev
Log:
Backported from mainline
2019-04-16  Jakub Jelinek  

PR tree-optimization/90090
* tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
throw internally.
(is_division_by_square): Likewise.  Formatting fix.

* g++.dg/opt/pr90090.C: New test.

Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/opt/pr90090.C
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/tree-ssa-math-opts.c

[Bug tree-optimization/90090] [7/8 Regression] ICE in mark_reachable_handlers, at tree-eh.c:3938 since r219202

2019-04-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90090

Jakub Jelinek  changed:

   What|Removed |Added

  Known to work||9.0
Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
   |mark_reachable_handlers, at |mark_reachable_handlers, at
   |tree-eh.c:3938 since|tree-eh.c:3938 since
   |r219202 |r219202
  Known to fail|9.0 |

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