From 383b8a032eb24f355eaaa560d471c0399df78121 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 8 May 2019 23:48:58 +0200 Subject: [PATCH] compiler-rt: Add __aeabi_unwind_cpp_pr{0,1,2} --- std/special/compiler_rt.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/std/special/compiler_rt.zig b/std/special/compiler_rt.zig index 2f2c901f94..0169fd154e 100644 --- a/std/special/compiler_rt.zig +++ b/std/special/compiler_rt.zig @@ -135,6 +135,10 @@ comptime { @export("__negdf2", @import("compiler_rt/negXf2.zig").__negdf2, linkage); if (is_arm_arch and !is_arm_64) { + @export("__aeabi_unwind_cpp_pr0", __aeabi_unwind_cpp_pr0, strong_linkage); + @export("__aeabi_unwind_cpp_pr1", __aeabi_unwind_cpp_pr1, linkage); + @export("__aeabi_unwind_cpp_pr2", __aeabi_unwind_cpp_pr2, linkage); + @export("__aeabi_ldivmod", __aeabi_ldivmod, linkage); @export("__aeabi_uldivmod", __aeabi_uldivmod, linkage); @@ -273,6 +277,16 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn } } +extern fn __aeabi_unwind_cpp_pr0() void { + unreachable; +} +extern fn __aeabi_unwind_cpp_pr1() void { + unreachable; +} +extern fn __aeabi_unwind_cpp_pr2() void { + unreachable; +} + extern fn __divmoddi4(a: i64, b: i64, rem: *i64) i64 { @setRuntimeSafety(is_test);