summaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2013-10-08 12:13:13 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2013-10-08 12:13:13 +0000
commit481d1b81534c70122187f38c26d6a19db587528f (patch)
tree535698e7a260f82134c7871c7ce81f209823f3e1 /gcc/tree-eh.c
parent0e6a0e48eb5ead024d12453cb811bdf0ef5c3377 (diff)
downloadgcc-481d1b81534c70122187f38c26d6a19db587528f.tar.gz
tree-flow.h: Remove some prototypes.
* tree-flow.h: Remove some prototypes. * tree.h: Remove some protypes, add a couple. * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups, using_eh_for_cleanups_p): Add interface routines for front ends. * tree-eh.h: New file. Add protoptyes. * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete. (add_stmt_to_eh_lp_fn): Make static. (lower_try_finally): Use new using_eh_for_cleanups_p. * emit-rtl.c: Include tree-eh.h. * gimple.h: Include tree-eh.h. From-SVN: r203273
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index 1ad5baf5828..9eaae1170ab 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -41,15 +41,6 @@ along with GCC; see the file COPYING3. If not see
i.e. in hash tables. This is a structure to do this. */
typedef union {tree *tp; tree t; gimple g;} treemple;
-/* Nonzero if we are using EH to handle cleanups. */
-static int using_eh_for_cleanups_p = 0;
-
-void
-using_eh_for_cleanups (void)
-{
- using_eh_for_cleanups_p = 1;
-}
-
/* Misc functions used in this file. */
/* Remember and lookup EH landing pad data for arbitrary statements.
@@ -66,7 +57,7 @@ using_eh_for_cleanups (void)
/* Add statement T in function IFUN to landing pad NUM. */
-void
+static void
add_stmt_to_eh_lp_fn (struct function *ifun, gimple t, int num)
{
struct throw_stmt_node *n;
@@ -1655,7 +1646,7 @@ lower_try_finally (struct leh_state *state, gimple tp)
this_tf.try_finally_expr = tp;
this_tf.top_p = tp;
this_tf.outer = state;
- if (using_eh_for_cleanups_p && !cleanup_is_dead_in (state->cur_region))
+ if (using_eh_for_cleanups_p () && !cleanup_is_dead_in (state->cur_region))
{
this_tf.region = gen_eh_region_cleanup (state->cur_region);
this_state.cur_region = this_tf.region;