Commit 383b8a032e

LemonBoy <thatlemon@gmail.com>
2019-05-08 23:48:58
compiler-rt: Add __aeabi_unwind_cpp_pr{0,1,2}
1 parent 2dce137
Changed files (1)
std
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);