https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85638
--- Comment #17 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Wed May 9 07:59:46 2018 New Revision: 260071 URL: https://gcc.gnu.org/viewcvs?rev=260071&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: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/bb-reorder.c