rust/compiler/rustc_target/src
Matthias Krüger a8ebfb256a
Rollup merge of #139261 - RalfJung:msvc-align-mitigation, r=oli-obk
mitigate MSVC alignment issue on x86-32

This implements mitigation for https://github.com/rust-lang/rust/issues/112480 by stopping to emit `align` attributes on loads and function arguments when building for a win32 MSVC target. MSVC is known to not properly align `u64` and similar types, and claiming to LLVM that everything is properly aligned increases the chance that this will cause problems.

Of course, the misalignment is still a bug, but we can't fix that bug, only MSVC can.

Also add an errata note to the platform support page warning users about this known problem.

try-job: `i686-msvc*`
2025-04-24 11:40:35 +02:00
..
asm Rename is_like_osx to is_like_darwin 2025-03-25 21:53:52 +01:00
callconv mitigate MSVC unsoundness by not emitting alignment attributes on win32-msvc targets 2025-04-07 23:30:55 +02:00
spec Rollup merge of #139261 - RalfJung:msvc-align-mitigation, r=oli-obk 2025-04-24 11:40:35 +02:00
json.rs compiler: internally merge Conv::PtxKernel into GpuKernel 2025-02-09 23:14:55 -08:00
lib.rs refactor: Move Apple OSVersion (back) to rustc_target 2025-04-04 15:01:27 +02:00
target_features.rs make abi_unsupported_vector_types a hard error 2025-04-20 11:34:56 +02:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00