-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Never inline naked functions #79192
Never inline naked functions #79192
Conversation
r? @oli-obk (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit 8afa22d has been approved by |
Never inline naked functions The `#[naked]` attribute disabled prologue / epilogue emission for the function and it is responsibility of a developer to provide them. The compiler is no position to inline such functions correctly. Disable inlining of naked functions at LLVM and MIR level. Closes rust-lang#60919.
Never inline naked functions The `#[naked]` attribute disabled prologue / epilogue emission for the function and it is responsibility of a developer to provide them. The compiler is no position to inline such functions correctly. Disable inlining of naked functions at LLVM and MIR level. Closes rust-lang#60919.
fails on wasm32 since asm! isn't supported: @bors r- |
8afa22d
to
c2fb999
Compare
The `#[naked]` attribute disabled prologue / epilogue emission for the function and it is responsibility of a developer to provide them. The compiler is no position to inline such functions correctly. Disable inlining of naked functions at LLVM and MIR level.
Ignored test on wasm32. |
@bors r=oli-obk |
📌 Commit c2fb999 has been approved by |
☀️ Test successful - checks-actions |
Functions with `#[naked]` are no longer eligible for inlining as of <rust-lang/rust#79192>. Fixes test failures in the RISC-V port.
The
#[naked]
attribute disabled prologue / epilogue emission for thefunction and it is responsibility of a developer to provide them. The
compiler is no position to inline such functions correctly.
Disable inlining of naked functions at LLVM and MIR level.
Closes #60919.