[LLVMbugs] [Bug 14984] New: Implement __attribute__((ms_abi))

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 17 05:43:19 PST 2013


             Bug #: 14984
           Summary: Implement __attribute__((ms_abi))
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rpaulo at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Since version 4.7 of GCC, there is a new attribute to make a function use the
MS ABI calling convention: __attribute__((ms_abi)).

This is useful when compiling ELF files on Unix which will then call EFI
functions. gnu-efi and FreeBSD need this support from the compiler, because
otherwise they have to wrap around every EFI function call with assembly
instructions to convert ABIs.

It looks like it should be enough to support __attribute__((stdcall)) which
would map to X86_StdCall.

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