http://llvm.org/bugs/show_bug.cgi?id=3749
Summary: linker adds spurious use to appending globals
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: miscompilation
Severity: major
Priority: P2
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
When linking two modules containing appending globals with uses=0 with
llvm::Linker, the resulting global will have a uses count of one.
The cause for the extra use is found in LinkModules.cpp:1168, where a
ConstantExpr::getBitCast(NG, G1->getType()) is created as a replacement for
previous uses of G1 - even if there weren't any.
This bug is significant as the nonzero use count stops LLVM from processing
magic global constants such as llvm.global_ctors.
--
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