Code generation bug when using naked/inlineasm #73940
Labels
A-codegen
Area: Code generation
A-naked
Area: `#[naked]`, prologue and epilogue-free, functions, https://git.io/vAzzS
C-bug
Category: This is a bug.
F-asm
`#![feature(asm)]` (not `llvm_asm`)
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I thought I'd do some exploration of the new Rust inline assembly support. Unfortunately, I think I've hit a bug.
Here's my code:
When compiling (
cargo rustc -- --emit asm
), I get the following output:However, if I compile a different way (
rustc src/lib.rs --crate-type lib --emit asm
), I don't get the offending line:Likewise, if I compile for release (
cargo rustc --release -- --emit asm
), the offending line is missing:The text was updated successfully, but these errors were encountered: