https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85393
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Apr 13 19:55:15 2018 New Revision: 259378 URL: https://gcc.gnu.org/viewcvs?rev=259378&root=gcc&view=rev Log: PR rtl-optimization/85393 * except.h (expand_dw2_landing_pad_for_region): Remove declaration. * except.c (expand_dw2_landing_pad_for_region): Make static. * bb-reorder.c (fix_up_crossing_landing_pad): In new_bb emit just a label and unconditional jump to old_bb, rather than expand_dw2_landing_pad_for_region insn(s) and jump to single_succ basic block. * g++.dg/opt/pr85393.C: New test. * g++.dg/opt/pr85393-aux.cc: New file. Added: trunk/gcc/testsuite/g++.dg/opt/pr85393-aux.cc trunk/gcc/testsuite/g++.dg/opt/pr85393.C Modified: trunk/gcc/ChangeLog trunk/gcc/bb-reorder.c trunk/gcc/except.c trunk/gcc/except.h trunk/gcc/testsuite/ChangeLog