https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85638
--- Comment #16 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Wed May 9 07:58:29 2018 New Revision: 260070 URL: https://gcc.gnu.org/viewcvs?rev=260070&root=gcc&view=rev Log: PR rtl-optimization/85638 * bb-reorder.c: Include common/common-target.h. (create_forwarder_block): New function extracted from... (fix_up_crossing_landing_pad): ...here. Rename into... (dw2_fix_up_crossing_landing_pad): ...this. (sjlj_fix_up_crossing_landing_pad): New function. (find_rarely_executed_basic_blocks_and_crossing_edges): In SJLJ mode, call sjlj_fix_up_crossing_landing_pad if there are incoming EH edges from both partitions and exit the loop after one iteration. Modified: trunk/gcc/ChangeLog trunk/gcc/bb-reorder.c