summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 9ba7aa8f6c9..801718de195 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1361,17 +1361,9 @@ sjlj_emit_dispatch_table (rtx dispatch_label, int num_dispatch)
if (num_dispatch > 1)
{
- gimple switch_stmt;
- tree default_label = create_artificial_label (UNKNOWN_LOCATION);
rtx disp = adjust_address (fc, TYPE_MODE (integer_type_node),
sjlj_fc_call_site_ofs);
- switch_stmt = gimple_build_switch (make_tree (integer_type_node, disp),
- build_case_label (NULL, NULL,
- default_label),
- dispatch_labels);
- expand_case (switch_stmt);
- emit_label (label_rtx (default_label));
- expand_builtin_trap ();
+ expand_sjlj_dispatch_table (disp, dispatch_labels);
}
seq = get_insns ();