Skip to content

Commit 845bcdd

Browse files
committed
Mark rust_eh_unwind_resume as #[inline(never)] for stage0
1 parent 176f4be commit 845bcdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libpanic_unwind/gcc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ unsafe fn find_eh_action(
333333
#[lang = "eh_unwind_resume"]
334334
#[unwind(allowed)]
335335
#[naked]
336+
#[inline(never)]
336337
unsafe extern "C" fn rust_eh_unwind_resume(_panic_ctx: *mut u8) -> ! {
337338
// This needs to be a naked function because _Unwind_Resume expects to be
338339
// called directly from the landing pad. This means that we need to force

0 commit comments

Comments
 (0)