sparc64 has incorrect ABI for struct containing f64 and f32 #122620
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
C-bug
Category: This is a bug.
I-miscompile
Issue: Correct Rust code lowers to incorrect machine code
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
O-SPARC
Target: SPARC processors
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Compiles successfully
Instead, this happened:
Before #122619,this ICEs the compiler (https://godbolt.org/z/bKn6d5jeM):(see backtrace below).
After #122619, this will compile, but it will use a bizarre ABI that's probably wrong:EDIT: I decided not to fix this ICE in #122619, since it's better to error than generate wrong code. But when the ICE is fixed, the current ABI code generates something nonsensical:
Meta
rustc --version --verbose
:(also reproducible on very recent master 766bdce)
Backtrace
The text was updated successfully, but these errors were encountered: