aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.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.c
parent0e6a0e48eb5ead024d12453cb811bdf0ef5c3377 (diff)
downloadgcc-481d1b81534c70122187f38c26d6a19db587528f.zip
gcc-481d1b81534c70122187f38c26d6a19db587528f.tar.gz
gcc-481d1b81534c70122187f38c26d6a19db587528f.tar.bz2
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.c')
-rw-r--r--gcc/tree.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 705332f..50717f0 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -12247,4 +12247,22 @@ block_may_fallthru (const_tree block)
}
}
+/* True if we are using EH to handle cleanups. */
+static bool using_eh_for_cleanups_flag = false;
+
+/* This routine is called from front ends to indicate eh should be used for
+ cleanups. */
+void
+using_eh_for_cleanups (void)
+{
+ using_eh_for_cleanups_flag = true;
+}
+
+/* Query whether EH is used for cleanups. */
+bool
+using_eh_for_cleanups_p (void)
+{
+ return using_eh_for_cleanups_flag;
+}
+
#include "gt-tree.h"