ahatanak added a comment.

If it's important to be able to compile one file with 
-fno-zero-initialized-in-bss and another without the option, we could add a bit 
to GlobalVariable that indicates it shouldn't be go into the bss section. Is 
that what you are suggesting?

If we are going to take that approach, users will be passing 
-fno-zero-initialized-in-bss at compile time to set the bit for the 
GlobalVariables clang creates and pass the option again at link time (which 
will translate into -mllvm -nozero-initialized-in-bss) since some of the passes 
that are run at link time create GlobalVariables.


http://reviews.llvm.org/D12511



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to