about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-12-14 00:32:39 +0000
committerTrevor Gross <tmgross@umich.edu>2025-01-27 12:12:59 +0000
commit61e48a25dac28d1d63c0b084d448e18e07da34cc (patch)
tree3921719475165a3f7531810858b9956562acd69f /compiler/rustc_codegen_llvm/src/errors.rs
parentb52c07f2294ec23a2ec3c35515f0430b1124638c (diff)
downloadrust-61e48a25dac28d1d63c0b084d448e18e07da34cc.tar.gz
rust-61e48a25dac28d1d63c0b084d448e18e07da34cc.zip
Windows x86: Change `i128` to return via the vector ABI
Clang and GCC both return `i128` in xmm0 on windows-msvc and
windows-gnu. Currently, Rust returns the type on the stack. Add a
calling convention adjustment so we also return scalar `i128`s using the
vector ABI, which makes our `i128` compatible with C.

In the future, Clang may change to return `i128` on the stack for its
`-msvc` targets (more at [1]). If this happens, the change here will
need to be adjusted to only affect MinGW.

Link: https://github.com/rust-lang/rust/issues/134288
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions