summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-03-11 12:31:29 -0400
committermidipix <writeonce@midipix.org>2019-03-12 02:53:39 -0400
commit9725359a692a08edca255132b795cf0b102e5104 (patch)
treead874dd04440f93171fce164c205d4dbbfa1e124 /gcc
parent5f10cda1cd800017cac6f3fd7b4c9d88d306bb2d (diff)
downloadcbb-gcc-4.6.4-9725359a692a08edca255132b795cf0b102e5104.tar.bz2
cbb-gcc-4.6.4-9725359a692a08edca255132b795cf0b102e5104.tar.xz
gcc/tree.c: support target-provided unwind interfaces.
Diffstat (limited to 'gcc')
-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)