Change EmitGlobalVariable to check final assembler section is in BSS
before using .lcomm/.comm directive. This prevents globals from being
put into .bss erroneously when -data-sections is used.
This fixes PR26570.
Paths
| Differential D21146
Fix BSS global handling in AsmPrinter ClosedPublic Authored by niravd on Jun 8 2016, 11:15 AM.
Details Summary Change EmitGlobalVariable to check final assembler section is in BSS This fixes PR26570.
Diff Detail
Event Timelineniravd updated this object. Comment Actions Lgtm. Do you have commit access? BTW, I don't think there is any value in using a .lcomm or a .local/.comm Cheers, Closed by commit rL272674: Fix BSS global handling in AsmPrinter (authored by niravd). · Explain WhyJun 14 2016, 8:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 60691 llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/test/CodeGen/X86/global-sections.ll
|