You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking issue for all the ways in which -C compiler flags can alter the ABI #131837
A-ABIArea: Concerning the application binary interface (ABI)A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
If a -C flag alters the ABI, mixing crates built with different flags causes UB. This issue is gathering all the ways in which this can happen, so that we can figure out what to do with them. The general goal is to make it impossible to alter these flags without realizing that they are "special" and need to be set consistently across all crates. Ideally rustc can even check that they are set consistently, though that will not cover dynamic linking.
-Ctarget-features can affect the ABI in a bunch of ways
Probably -Clink-arg(s) can also do bad shenanigans... but it can't really affect ABI, can it? The ABI is already baked into the object files at this point.
This list might be incomplete!
Reacted by 许杰友 Jieyou Xu (Joe), Michael Goulet, comex, Dante Broggi, Luv-Ray and orzogc
changed the title [-]Tracking issue for all the ways in which -C flags can alter the ABI[/-][+]Tracking issue for all the ways in which -C compiler flags can alter the ABI[/+]on Oct 17, 2024
A-ABIArea: Concerning the application binary interface (ABI)A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Activity
[-]Tracking issue for all the ways in which -C flags can alter the ABI[/-][+]Tracking issue for all the ways in which -C compiler flags can alter the ABI[/+]