Fix mini_core for panic=unwind
This commit is contained in:
parent
fe059c1c54
commit
9196eb3dd1
1 changed files with 18 additions and 1 deletions
|
|
@ -521,10 +521,27 @@ fn panic_cannot_unwind() -> ! {
|
|||
}
|
||||
|
||||
#[lang = "eh_personality"]
|
||||
fn eh_personality() -> ! {
|
||||
// FIXME personality signature depends on target
|
||||
fn eh_personality(
|
||||
_version: i32,
|
||||
_actions: i32,
|
||||
_exception_class: u64,
|
||||
_exception_object: *mut (),
|
||||
_context: *mut (),
|
||||
) -> i32 {
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[lang = "panic_in_cleanup"]
|
||||
fn panic_in_cleanup() -> ! {
|
||||
loop {}
|
||||
}
|
||||
|
||||
#[link(name = "gcc_s")]
|
||||
extern "C" {
|
||||
fn _Unwind_Resume(exc: *mut ()) -> !;
|
||||
}
|
||||
|
||||
#[lang = "drop_in_place"]
|
||||
#[allow(unconditional_recursion)]
|
||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue