[LLVMdev] Linking two external linkage GlobalValues

Chris Lattner sabre at nondot.org
Sat May 26 15:45:57 PDT 2007

On Sat, 26 May 2007, Bram Adams wrote:
>> Shouldn't these symbols get "common" linkage, aka llvm weak linkage?
>> Are you building the source with -fno-common?
> Yes. What does this mean?

-fno-common is a performance win on some targets, but it disallows merging 
of global variables that are defined with no initializers (like your 
example).  Please remove -fno-common, if it builds correctly, then it is 
not an llvm bug.



More information about the llvm-dev mailing list