[llvm-dev] How to pass march flag to GCC Assembler arch64-linux-gnu-as

Renato Golin via llvm-dev llvm-dev at lists.llvm.org
Mon Oct 26 10:36:14 PDT 2015

On 26 October 2015 at 17:31, Sri via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> I am trying to build chromium and at this moment, They see some issues with
> internal one so recommended to use the flag -fno-integrated-as.

Hi Sri,

We were clearing all the bugs from the integrated assembler
(https://llvm.org/bugs/show_bug.cgi?id=20422), so if you could try it,
I'd love to hear how much we have progressed since the last time Hans
tried, for both ARM and AArch64.

> Manually running  /usr/bin/aarch64-linux-gnu-as -march=armv8-a+crypto -I gen
> -I ../include -o MyFile.o MyFile.s works fine without any errors

Have you tried -Wa that Tim suggested? It should work just fine.

I agree Clang should pass down the architecture flags to the
assembler, but we're assuming the external assembler will accept all
variations Clang does, which may not be true.


More information about the llvm-dev mailing list