https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ok, it is the fix_up_crossing_landing_pad function that is buggy. It simply assumes that a landing pad basic block contains only the landing pad instructions and nothing else; as this testcase proves, it is a wrong assumption. Either we could really duplicate the bb, or, IMHO better, instead of partially duplicating it just emit a label and jump (cross partition) to the existing landing pad.