-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for -Zregparm #131749
Copy link
Copy link
Open
Labels
-ZregparmUnstable option: -ZregparmUnstable option: -ZregparmA-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-x86_32Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
-ZregparmUnstable option: -ZregparmUnstable option: -ZregparmA-ABIArea: Concerning the application binary interface (ABI)Area: Concerning the application binary interface (ABI)A-CLIArea: Command-line interface (CLI) to the compilerArea: Command-line interface (CLI) to the compilerA-rust-for-linuxRelevant for the Rust-for-Linux projectRelevant for the Rust-for-Linux projectC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCO-x86_32Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)Target: x86 processors, 32 bit (like i686-*) (also known as IA-32, i386, i586, i686)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the
-Zregparmflag 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=3apply to the Rust ABI implicitly, without-Zregparmaffecting 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?