From 9725359a692a08edca255132b795cf0b102e5104 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 11 Mar 2019 12:31:29 -0400 Subject: gcc/tree.c: support target-provided unwind interfaces. --- gcc/tree.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/tree.c b/gcc/tree.c index 83a07117f..bd2f2cd98 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -9381,9 +9381,13 @@ build_common_builtin_nodes (void) ftype = build_function_type_list (void_type_node, ptr_type_node, NULL_TREE); local_define_builtin ("__builtin_unwind_resume", ftype, BUILT_IN_UNWIND_RESUME, +#ifdef TARGET_PERSONALITY_FUNCTION_MIDIPIX + "__unwind_resume", +#else ((targetm.except_unwind_info (&global_options) == UI_SJLJ) ? "_Unwind_SjLj_Resume" : "_Unwind_Resume"), +#endif ECF_NORETURN); if (built_in_decls[BUILT_IN_RETURN_ADDRESS] == NULL_TREE) -- cgit v1.2.3