re PR tree-optimization/88107 (ICE in find_outermost_region_in_block, at tree-cfg...
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Feb 2019 08:43:02 +0000 (09:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Feb 2019 08:43:02 +0000 (09:43 +0100)
commitac33bce89cdab0c0c43edec60b98a1fccdf3bd4b
tree9b6949a0d1d15eba96227cb7488b39ba41992694
parent7beb51f914e5f5930c279aab88597a39597064a6
re PR tree-optimization/88107 (ICE in find_outermost_region_in_block, at tree-cfg.c:7157)

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.

From-SVN: r268444
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr88107.c [new file with mode: 0644]
gcc/tree-cfg.c