[LLVMdev] ambiguity of .align

Rafael Espindola espindola at google.com
Mon Jan 25 09:56:59 PST 2010


2010/1/25 Edmund Grimley Evans <Edmund.Grimley-Evans at arm.com>:
> 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.

On what architecture did you got the error? We have AlignmentIsInBytes
in MCAsmInfo for that. It is probably wrong for your architecture.

> Edmund

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the llvm-dev mailing list