-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Directly calling "msp430-interrupt" fn should also be invalid #132839
Copy link
Copy link
Closed
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-hardware-interruptsArea: Code for handling the "interrupt ABI" of various processorsArea: Code for handling the "interrupt ABI" of various processorsC-bugCategory: This is a bug.Category: This is a bug.O-msp430T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-hardware-interruptsArea: Code for handling the "interrupt ABI" of various processorsArea: Code for handling the "interrupt ABI" of various processorsC-bugCategory: This is a bug.Category: This is a bug.O-msp430T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see rustc reject the erroneous code somewhere before final LLVM lowering, because the notion of "calling" an interrupt still seems nonsensical to me, no matter what its signature is.
Instead, this happened:
Meta
rustc --version --verbose:@rustbot label: +A-hardware-interrupts +A-LLVM +O-msp430 +A-ABI +T-compiler
Related Issues
msp430-interruptcalling convention/ABI #38487"x86-interrupt" fnshould be invalid #132834extern "riscv-interrupt-{m,s}" fn... compiles? #132836