https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88107
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Feb 7 14:51:41 2019 New Revision: 268640 URL: https://gcc.gnu.org/viewcvs?rev=268640&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-8-branch/gcc/testsuite/gcc.dg/gomp/pr88107.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-cfg.c