Tracking Issue for -Zregparm
#131749
Labels
A-ABI
Area: Concerning the application binary interface (ABI)
A-CLI
Area: Command-line interface (CLI) to the compiler
A-rust-for-linux
Relevant for the Rust-for-Linux project
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
O-x86_32
Target: x86 processors, 32 bit (like i686-*)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a tracking issue for the
-Zregparm
flag for x86. It is the equivalent of Clang's/GCC's-mregparm=3
. The kernel needs it to support the x86 32-bit architecture, together with-Zreg-struct-return
.It could potentially be a "global target feature", i.e. a target feature that is required to be set the same way for all compilation units.
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Steps
Unresolved Questions & Answers
"fastcall"
or-Zregparm=3
apply to the Rust ABI implicitly, without-Zregparm
affecting it?"C"
,"cdecl"
, and"stdcall"
?extern "fastcall"
does something equivalent to-Zregparm=2
, so do MSVC targets even use it, or do they just usefastcall
?The text was updated successfully, but these errors were encountered: