https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96514
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a568a893f38a9cd32ddffd32bb9b6636deeeb5f1 commit r10-8747-ga568a893f38a9cd32ddffd32bb9b6636deeeb5f1 Author: Richard Biener <rguent...@suse.de> Date: Fri Aug 7 10:16:05 2020 +0200 tree-optimization/96514 - avoid if-converting control-altering calls This avoids if-converting when encountering control-altering calls. 2020-08-07 Richard Biener <rguent...@suse.de> PR tree-optimization/96514 * tree-if-conv.c (if_convertible_bb_p): If the last stmt is a call that is control-altering, fail. * gcc.dg/pr96514.c: New testcase. (cherry picked from commit c3f94f5786a014515c09c7852db228c74adf51e5)