GAS .fpu directive
Renato Golin
renato.golin@linaro.org
Thu Aug 21 09:20:00 GMT 2014
On 21 August 2014 10:02, Matthew Fortune <Matthew.Fortune@imgtec.com> wrote:
> FWIW given that behaviour my suggestion would be that for .fpu you would
> want to enforce just one .fpu directive and that should precede all code.
> I guess that might break some existing code though but I'd say that is a
> good thing.
That was my original proposal, and one that I'm ready to enforce in
LLVM's ARM assembler as soon as we reach consensus. :)
> Introducing a new directive to select the 'current' fpu may then be
> necessary for some use cases though. The current situation doesn't sound
> good from a hand-coded assembler nor compiler perspective. It seems fairly
> undesirable to allow an inline asm block to affect a module's attributes.
Indeed!
Other directives have the same problem: .cpu, .arch, .arch_extension,
.eabi_attribute, .syntax, etc.
> It seems less likely to occur in hand-written assembler but the results
> would be equally confusing if multiple .fpu directives did appear.
It does, and that's why I started this discussion. This has shown up
while compiling Chromium for Android with LLVM.
http://llvm.org/bugs/show_bug.cgi?id=20447
cheers,
--renato
More information about the Binutils
mailing list