https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88107
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 11:35:08 2019 New Revision: 275095 URL: https://gcc.gnu.org/viewcvs?rev=275095&root=gcc&view=rev Log: Backported from mainline 2019-02-01 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/88107 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument, instead of assertion that eh_region_outermost is non-NULL, if it is NULL, set *ALL to true and return NULL. (move_sese_region_to_fn): Adjust caller, if all is set, call duplicate_eh_regions with NULL region. * gcc.dg/gomp/pr88107.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/gomp/pr88107.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-cfg.c