http://llvm.org/bugs/show_bug.cgi?id=22351
Bug ID: 22351
Summary: [3.6] assertion failed when using -flto with undefined
symbols
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: gold-plugin
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Reproducer:
int foo();
int main()
{
return foo();
}
#3.6
$ clang -flto main.cpp
repo/tools/gold/gold-plugin.cpp:636: std::unique_ptr<Module>
getModuleForFile(llvm::LLVMContext &, <anonymous>::claimed_file &,
llvm::raw_fd_ostream *, StringSet<> &, StringSet<> &): Assertion
`GV->hasComdat()' failed.
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)
#trunk
$ clang -flto main.cpp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sergey Gvozdarev
===============
Software Engineer
Intel Compiler Team
--
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