[LLVMdev] ambiguity of .align

Sandeep Patel deeppatel1987 at gmail.com
Mon Jan 25 18:43:09 PST 2010

Assuming you're working with an ARM target, you may also hit a problem
with the alignment option on the .comm directive.

Attached is a first-cut patch for this latter problem.


On Mon, Jan 25, 2010 at 5:42 PM, Edmund Grimley Evans
<Edmund.Grimley-Evans at arm.com> wrote:
> I just got this error message from the GNU assembler:
> Error: alignment too large: 15 assumed
> Which made me laugh at first. The corresponding input line was:
>        .align  16
> Apparently what's going on here is that ".align 16" is ambiguous: on
> some architectures it means ".balign 16", and on some it means ".p2align
> 16", which would mean ".balign 65536" if it were allowed. See:
> http://ftp.gnu.org/pub/old-gnu/Manuals/gas-2.9.1/html_node/as_68.html
> I'm not sure what the best way is to fix this. If LLVM wants to support
> other assemblers presumably an architecture-dependency is required.
> Edmund
> --
> IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deep-llvm-comm-align.diff
Type: application/octet-stream
Size: 4142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100126/a354ed13/attachment.obj>

More information about the llvm-dev mailing list