zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 383b8a032eb24f355eaaa560d471c0399df78121 (tree)
parent 2dce137d926150d34ff7a3650da48c211e34771a
Author: LemonBoy <thatlemon@gmail.com>
Date:   Wed,  8 May 2019 23:48:58 +0200

compiler-rt: Add __aeabi_unwind_cpp_pr{0,1,2}

Diffstat:
Mstd/special/compiler_rt.zig | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git 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);