Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Support the 'ms_abi' and 'sysv_abi' attributes #9520

Closed
llvmbot opened this issue Feb 5, 2011 · 1 comment
Closed

[ENH] Support the 'ms_abi' and 'sysv_abi' attributes #9520

llvmbot opened this issue Feb 5, 2011 · 1 comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Feb 5, 2011

Bugzilla Link 9148
Resolution FIXED
Resolved on Aug 30, 2013 11:42
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @jeremyhu

Extended Description

The Win64 and System V x86-64 ABIs have different calling conventions. Currently, LLVM picks the right convention based on the target triple.

GCC does this too, but it also allows code to override the default using two attributes, 'ms_abi' and 'sysv_abi', which pick the Win64 and System V x86-64 conventions, respectively.

Sixty-four-bit Wine (http://www.winehq.org/) uses the ms_abi attribute extensively in order for its DLLs to have the correct calling convention. Without this support, LLVM-based compilers can't build 64-bit Wine.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Aug 30, 2013

Both are implemented as of r189644.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant