[LLVMbugs] [Bug 8918] New: LLVM generates incorrect __main call with MinGW64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 5 16:00:52 PST 2011


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

           Summary: LLVM generates incorrect __main call with MinGW64
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sreeram at tachyontech.net
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5966)
 --> (http://llvm.org/bugs/attachment.cgi?id=5966)
Patch for fixing the above issue.

When used with MinGW64, LLVM generates a "calll __main" at the beginning of the
"main" function. The assembler complains about the invalid suffix for the
'call' instruction. The right instruction is "callq __main".

I've attached a patch that fixes it.

-- 
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