Skip to content

Commit a2d6604

Browse files
committed
Mark rust_eh_unwind_resume as #[inline(always)]
1 parent 2dbac07 commit a2d6604

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libpanic_unwind/gcc.rs

+3
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ unsafe fn find_eh_action(
332332
))]
333333
#[lang = "eh_unwind_resume"]
334334
#[unwind(allowed)]
335+
// This must always be inlined because _Unwind_Resume expects to be called
336+
// directly from the landing pad.
337+
#[cfg_attr(not(bootstrap), inline(always))]
335338
unsafe extern "C" fn rust_eh_unwind_resume(panic_ctx: *mut u8) -> ! {
336339
uw::_Unwind_Resume(panic_ctx as *mut uw::_Unwind_Exception);
337340
}

0 commit comments

Comments
 (0)