The existing code (which looks like it was copied from MIPS) passes aggregates by value in registers. This is wrong. According to the SVR4 powerpc psABI, all aggregates are passed indirectly. See #64259 for more discussion, which addresses the ABI for the special case of ZSTs (empty structs). |
||
|---|---|---|
| .. | ||
| abi | ||
| spec | ||
| build.rs | ||
| Cargo.toml | ||
| lib.rs | ||
| README.md | ||
librustc_target contains some very low-level details that are
specific to different compilation targets and so forth.
For more information about how rustc works, see the rustc guide.