[LLVMdev] [patch] emit .weak for zero initialized weak variables
Chris Lattner
sabre at nondot.org
Sat Dec 16 13:59:35 PST 2006
On Sat, 9 Dec 2006, [UTF-8] Rafael Esp?ndola wrote:
> The attached patches makes all backends print a .weak directive for
> zero initialized variables. GCC does it on x86-64 and ARM. I assume
> that it should be done on all architectures.
>
> The patch also adds a test to the ARM backend? Should I copy it to all
> backends?
I'm not sure this is right. C code like this:
int X;
should compile to a .comm directive, not a .weak directive, right?
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list