[LLVMbugs] [Bug 9148] New: [ENH] Support the 'ms_abi' and 'sysv_abi' attributes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 5 09:01:46 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9148

           Summary: [ENH] Support the 'ms_abi' and 'sysv_abi' attributes
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: cdavis at mymail.mines.edu
                CC: llvmbugs at cs.uiuc.edu


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.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list