summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/tree.c4
1 files changed, 4 insertions, 0 deletions
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)