Hi, Op 26-mei-07, om 23:14 heeft Chris Lattner het volgende geschreven:> Shouldn't these symbols get "common" linkage, aka llvm weak linkage? > > Are you building the source with -fno-common?Yes. What does this mean? Kind regards, Bram Adams GH-SEL, INTEC, Ghent University (Belgium)
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. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Hi, Op 27-mei-07, om 00:45 heeft Chris Lattner het volgende geschreven:> -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.It was indeed the -fno-common which caused the problems, so it's not an LLVM bug. Kind regards, Bram Adams GH-SEL, INTEC, Ghent University (Belgium)