https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71769
amker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from amker at gcc dot gnu.org --- This is fixed by below change: r238336 | hubicka | 2016-07-14 14:52:21 +0100 (Thu, 14 Jul 2016) | 6 lines * gimple.h (stmt_can_terminate_bb_p): New function. * tree-cfg.c (need_fake_edge_p): Rename to ... (stmt_can_terminate_bb_p): ... this; return true if stmt can throw external; handle const and pure calls. * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.