From 0142c30a9377cd0cf2aaabddad062db0de4e37f3 Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Sun, 16 Oct 2016 14:02:04 +0200 Subject: [PATCH] Add eh_unwind_resume lang item This is necessary for targets where the `custom_unwind_resume` flag is set. --- compiler-rt/compiler-rt-cdylib/src/lib.rs | 2 ++ src/bin/intrinsics.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/compiler-rt/compiler-rt-cdylib/src/lib.rs b/compiler-rt/compiler-rt-cdylib/src/lib.rs index 81affa242..f62430a00 100644 --- a/compiler-rt/compiler-rt-cdylib/src/lib.rs +++ b/compiler-rt/compiler-rt-cdylib/src/lib.rs @@ -62,3 +62,5 @@ declare!(___powidf2, __powidf2); fn eh_personality() {} #[lang = "panic_fmt"] fn panic_fmt() {} +#[lang = "eh_unwind_resume"] +fn eh_unwind_resume() {} diff --git a/src/bin/intrinsics.rs b/src/bin/intrinsics.rs index 5a4a34503..3ead4a482 100644 --- a/src/bin/intrinsics.rs +++ b/src/bin/intrinsics.rs @@ -405,3 +405,7 @@ extern "C" fn eh_personality() {} #[cfg(not(test))] #[lang = "panic_fmt"] extern "C" fn panic_fmt() {} + +#[cfg(not(test))] +#[lang = "eh_unwind_resume"] +extern "C" fn eh_unwind_resume() {}