[LLVMdev] [patch] emit .weak for zero initialized weak variables
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
I'm not sure this is right. C code like this:
should compile to a .comm directive, not a .weak directive, right?
More information about the llvm-dev