http://llvm.org/bugs/show_bug.cgi?id=20851
Bug ID: 20851
Summary: MCJIT is failing when used with more that one module
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Target-Independent JIT
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Sample code: http://pastebin.com/fL1yTVCk
Compilation: gcc fail.c -m64
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --cflags`
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --ldflags`
`/Users/amaury/d/llvm/build/Debug+Asserts/bin/llvm-config --libs` -lc++
-lncurses -lz
$ ./a.out
; ModuleID = 'm1'
; ModuleID = 'm2'
define i32 @foo() {
ret i32 42
}
Bus error: 10
Further exploration showed me that the failure happen when calling the Jitted
function. It look like the generated code is invalid.
--
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