[LLVMdev] [patch] emit .weak for zero initialized weak variables

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sat Dec 9 13:12:44 PST 2006


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?

Comments?

Thanks,
Rafael

P.S.: I find the doFinalization code a bit confusing. Would you
welcome a cleanup patch?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 6093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061209/ba93956f/attachment.bin>


More information about the llvm-dev mailing list