Most extern "*-interrupt-*" fn
should enforce 0-sized signatures
#132837
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-msp430
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 rustc catch this invalid signature.
Instead, this happened:
My understanding is that the same story applies for non-x86 interrupt ABIs like MSP430's.
Meta
rustc --version --verbose
:@rustbot label: +A-hardware-interrupts +A-LLVM +O-riscv +O-msp430 +A-ABI +T-compiler
Related Issues
msp430-interrupt
calling convention/ABI #38487riscv-interrupt-{m,s}
ABIs #111889extern "x86-interrupt" fn
allows absurd signatures #132835extern "riscv-interrupt-{m,s}" fn
... compiles? #132836The text was updated successfully, but these errors were encountered: