diff options
author | Jan Hubicka <jh@suse.cz> | 2005-05-28 00:50:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-05-27 22:50:41 +0000 |
commit | b59fa6cf91b357b25e00dd3f1c3e88dd5d0220e2 (patch) | |
tree | 9b52f4570bb28084ba650786b833a780a6ea3ad1 /gcc/tree-eh.c | |
parent | ea497bb84cf1e43948fd78d1d4a985182a91c0cd (diff) | |
download | gcc-b59fa6cf91b357b25e00dd3f1c3e88dd5d0220e2.zip gcc-b59fa6cf91b357b25e00dd3f1c3e88dd5d0220e2.tar.gz gcc-b59fa6cf91b357b25e00dd3f1c3e88dd5d0220e2.tar.bz2 |
except.c (can_throw_internal_1, [...]): Add "is_resx" argument.
* except.c (can_throw_internal_1, can_throw_external_1): Add
"is_resx" argument.
(can_throw_external, can_throw_internal): Bring into sync wrt
dealing resx.
* except.h (can_throw_internal_1, can_throw_external_1): Update
prototype.
* tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
Deal properly with resx.
From-SVN: r100282
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 9f641e1..294e309 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -2009,29 +2009,31 @@ bool tree_can_throw_internal (tree stmt) { int region_nr; + bool is_resx = false; if (TREE_CODE (stmt) == RESX_EXPR) - region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)); + region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)), is_resx = true; else region_nr = lookup_stmt_eh_region (stmt); if (region_nr < 0) return false; - return can_throw_internal_1 (region_nr); + return can_throw_internal_1 (region_nr, is_resx); } bool tree_can_throw_external (tree stmt) { int region_nr; + bool is_resx = false; if (TREE_CODE (stmt) == RESX_EXPR) - region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)); + region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)), is_resx = true; else region_nr = lookup_stmt_eh_region (stmt); if (region_nr < 0) return tree_could_throw_p (stmt); else - return can_throw_external_1 (region_nr); + return can_throw_external_1 (region_nr, is_resx); } /* Given a statement OLD_STMT and a new statement NEW_STMT that has replaced |