aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
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"