https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81331
--- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Created attachment 41766 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41766&action=edit Patch I am testing Hi, this patch adds sanity check that turns the nasty wrong code issue into ICE and a hack to bb-reorder that should prevent it from placing EH landing pads very first. I am not quite sure this is robust enough, but can't think of better fix. We may end up outputting extra NOP in case we fail to find right order. Honza