https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82641
--- Comment #27 from Arnd Bergmann <arnd at linaro dot org> --- (In reply to Richard Earnshaw from comment #26) > (In reply to Arnd Bergmann from comment #25) > > > or to apply more force and add the ".arch" to each inline > > asm individually. > > No, that would not be guaranteed to be supported: and you'd be lying to the > compiler again. At the end of each asm block the compiler *could* emit new > .arch directive to forcibly reset the architecture to what IT thinks it > should be. That's fine though: we won't have any invalid instructions outside of the inline asm, the whole point of setting .arch to a higher arch revision is to make the inline asm work and avoid the build error from the assembler.