[LLVMbugs] [Bug 3511] New: clang generates i64 @main(i64, i64), which lli doesn' t accept

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 7 16:54:33 PST 2009


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

           Summary: clang generates i64 @main(i64, i64), which lli doesn't
                    accept
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: me22.ca at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ cat > bar.c
int main(int argc, char **argv) {
    return 0;
}
$ clang -emit-llvm bar.c
$ grep main bar.ll
define i64 @main(i64, i64) nounwind {
$ llvm-as bar.ll 
$ lli bar.bc 
Invalid type for second argument of main() supplied
0   lli       0x0000000000df18f6
1   lli       0x0000000000df1c2c
2   libc.so.6 0x00007f817141edc0
3   libc.so.6 0x00007f817141ed55 gsignal + 53
4   libc.so.6 0x00007f81714200ce abort + 270
5   lli       0x00000000009e0715
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::vector<std::string, std::allocator<std::string> > const&, char const*
const*) + 345
6   lli       0x00000000007e86b9 main + 1329
7   libc.so.6 0x00007f817140c1f4 __libc_start_main + 244
8   lli       0x00000000007e7c49 atan + 273
Aborted

LLVM/Clang r64059

Possibly related to http://llvm.org/bugs/show_bug.cgi?id=3477


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