authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-08 23:48:58+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-09 00:07:46+02:00
log383b8a032eb24f355eaaa560d471c0399df78121
tree4edb88034a7bc34db47c9f2318703a6da40eebb2
parent2dce137d926150d34ff7a3650da48c211e34771a

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


1 files changed, 14 insertions(+), 0 deletions(-)

std/special/compiler_rt.zig+14
......@@ -135,6 +135,10 @@ comptime {
135135 @export("__negdf2", @import("compiler_rt/negXf2.zig").__negdf2, linkage);
136136
137137 if (is_arm_arch and !is_arm_64) {
138 @export("__aeabi_unwind_cpp_pr0", __aeabi_unwind_cpp_pr0, strong_linkage);
139 @export("__aeabi_unwind_cpp_pr1", __aeabi_unwind_cpp_pr1, linkage);
140 @export("__aeabi_unwind_cpp_pr2", __aeabi_unwind_cpp_pr2, linkage);
141
138142 @export("__aeabi_ldivmod", __aeabi_ldivmod, linkage);
139143 @export("__aeabi_uldivmod", __aeabi_uldivmod, linkage);
140144
......@@ -273,6 +277,16 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn
273277 }
274278}
275279
280extern fn __aeabi_unwind_cpp_pr0() void {
281 unreachable;
282}
283extern fn __aeabi_unwind_cpp_pr1() void {
284 unreachable;
285}
286extern fn __aeabi_unwind_cpp_pr2() void {
287 unreachable;
288}
289
276290extern fn __divmoddi4(a: i64, b: i64, rem: *i64) i64 {
277291 @setRuntimeSafety(is_test);
278292