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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to