rust/compiler/rustc_target/src/spec
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
..
base Rollup merge of #139868 - thaliaarchi:move-env-consts-pal, r=joboet 2025-04-19 15:09:35 +00:00
targets Disable has_thread_local on i686-win7-windows-msvc 2025-04-18 13:30:26 +02:00
crt_objects.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
json.rs Rollup merge of #138949 - madsmtm:rename-to-darwin, r=WaffleLapkin 2025-04-04 08:02:05 +02:00
mod.rs Rollup merge of #139261 - RalfJung:msvc-align-mitigation, r=oli-obk 2025-04-24 11:40:35 +02:00