[LLVMbugs] [Bug 19027] New: Clang doesn't support stdcall names in inline asm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 3 02:41:09 PST 2014


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

            Bug ID: 19027
           Summary: Clang doesn't support stdcall names in inline asm
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amine.khaldi at reactos.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

A simple testcase like:

void __stdcall StdcallFunc() {};

void Test()
{
    asm ("call _StdcallFunc at 0\n");
}

Throws:

testcase.c:7:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
testcase.c:6:10: error: invalid variant '0'
    asm ("call _StdcallFunc at 0\n");
         ^
<inline asm>:1:20: note: instantiated into assembly here
        call _StdcallFunc at 0
                          ^
Another variant like:

void Test2()
{
    asm ("call %P[Func]\n" : : [Func] "i" (StdcallFunc));
}

Throws:

testcase.c:12:10: error: invalid variant '0'
    asm ("call %P[Func]\n" : : [Func] "i" (StdcallFunc));
         ^
<inline asm>:1:20: note: instantiated into assembly here
        call _StdcallFunc at 0
                          ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140303/01a1f20e/attachment.html>


More information about the llvm-bugs mailing list