Directly calling extern "riscv-interrupt-{m,s}" fn
... compiles?
#132836
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
A-hardware-interrupts
Area: Code for handling the "interrupt ABI" of various processors
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
O-AVR
Target: AVR processors (ATtiny, ATmega, etc.)
O-riscv
Target: RISC-V architecture
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code with
rustc --target riscv64gc-unknown-linux-gnu rust_code.rs
:I expected to see this happen: rustc or LLVM reject the direct call.
Instead, this happened:
...wait, why does it compile? This doesn't seem like it should compile...
Meta
rustc --version --verbose
:@rustbot label: +A-hardware-interrupts +A-LLVM +O-riscv +A-ABI +T-compiler
Related Issues
riscv-interrupt-{m,s}
ABIs #111889"x86-interrupt" fn
should be invalid #132834The text was updated successfully, but these errors were encountered: