Record outer non-cleanup region in TREE EH.
authorMartin Liska <mliska@suse.cz>
Mon, 20 Jan 2020 10:10:30 +0000 (11:10 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 20 Jan 2020 10:10:30 +0000 (11:10 +0100)
commit92ce93c743b3c81f6911bc3d06056099369e9191
tree80246049f8c7eac62cd554f404b547539c506b90
parent9c4f0d311810eba3f4faab1295c47eb57e695fcc
Record outer non-cleanup region in TREE EH.

PR tree-optimization/93199
* tree-eh.c (struct leh_state): Add
new field outer_non_cleanup.
(cleanup_is_dead_in): Pass leh_state instead
of eh_region.  Add a checking that state->outer_non_cleanup
points to outer non-clean up region.
(lower_try_finally): Record outer_non_cleanup
for this_state.
(lower_catch): Likewise.
(lower_eh_filter): Likewise.
(lower_eh_must_not_throw): Likewise.
(lower_cleanup): Likewise.
gcc/ChangeLog
gcc/tree-eh.c