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

           Summary: On 64-bit platform, clang uses wrong integer types
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Compiling on Fedora (Rawhide), x86_64

Using clang revision 63734, with following test code:

int main() {
  return 7
}

clang translates int to i64, rather than i32. clang -emit-llvm works, as well
as -emit-llvm-bc, but the generated code cannot be executed (using lli) because
main is expected to be i32, even on x86_64.

An earlier build of clang from a few months ago correctly uses i32 rather than
i64.


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