[Bug tree-optimization/71769] Invalid warning from -Wunsafe-loop-optimizations for a finite loop
amker at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 18 16:56:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list