Never use .lcomm on platforms where it does not accept an alignment
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 27 Nov 2012 16:11:16 +0000 (16:11 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 27 Nov 2012 16:11:16 +0000 (16:11 +0000)
commite5f9405842271e118ead8d5994cbc469560995b3
treeb39e87aefe2a47d9c2140aa20d9d0c477d6d4d3a
parentb0448cd52a39223e2b626b6db92f5668a0c6fe90
Never use .lcomm on platforms where it does not accept an alignment
argument.  Instead, use a pair of .local and .comm directives.

This avoids spurious differences between binaries built by the
integrated assembler vs. those built by the external assembler,
since the external assembler may impose alignment requirements
on .lcomm symbols where the integrated assembler does not.

llvm-svn: 168704
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/ARM/2010-12-15-elf-lcomm.ll
llvm/test/CodeGen/ARM/elf-lcomm-align.ll