http://bugs.llvm.org/show_bug.cgi?id=32798
Bug ID: 32798
Summary: ThinLTO fails to consider module inline asm refs as gc
roots
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Interprocedural Optimizations
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
$ cat mod-asm.cpp
int main() {}
__asm__(".quad foo");
$ cat mod-asm2.cpp
int foo = 1;
$ ra/bin/clang mod-asm.cpp mod-asm2.cpp -fuse-ld=lld
$ ra/bin/clang -flto=thin mod-asm.cpp mod-asm2.cpp -fuse-ld=lld
[...]/bin/ld.lld: error: undefined symbol: foo
>>> referenced by mod-asm.cpp
>>> lto.tmp:(.text+0x0)
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs