summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authordavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 16:09:23 +0000
committerdavidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-09 16:09:23 +0000
commit10e20ba5c8568167a43fe1fbecc1454eeed39ba4 (patch)
tree4df88ba9bea41f8d545aabd4a90d1d88d969a1e6 /gcc/except.c
parent40258d04c3c791745ab7e2788510adc024f111ea (diff)
downloadgcc-10e20ba5c8568167a43fe1fbecc1454eeed39ba4.tar.gz
Gator cleanup
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 1e5c291055f..a8bb7a94d92 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1440,14 +1440,17 @@ finish_eh_generation (void)
static bool
gate_handle_eh (void)
{
- /* Nothing to do if no regions created. */
- return cfun->eh->region_tree != NULL;
+ return true;
}
/* Complete generation of exception handling code. */
static unsigned int
rest_of_handle_eh (void)
{
+ /* Nothing to do if no regions created. */
+ if (cfun->eh->region_tree == NULL)
+ return 0;
+
finish_eh_generation ();
cleanup_cfg (CLEANUP_NO_INSN_DEL);
return 0;
@@ -2392,6 +2395,9 @@ convert_to_eh_region_ranges (void)
int min_labelno = 0, max_labelno = 0;
int saved_call_site_base = call_site_base;
+ if (cfun->eh->region_tree == NULL)
+ return 0;
+
crtl->eh.action_record_data = VEC_alloc (uchar, gc, 64);
ar_hash = htab_create (31, action_record_hash, action_record_eq, free);
@@ -2643,8 +2649,6 @@ static bool
gate_convert_to_eh_region_ranges (void)
{
/* Nothing to do for SJLJ exceptions or if no regions created. */
- if (cfun->eh->region_tree == NULL)
- return false;
if (targetm.except_unwind_info (&global_options) == UI_SJLJ)
return false;
return true;