[LLVMdev] [Compiler-rt] -march=aarch64 flag in gcc/clang

Renato Golin renato.golin at linaro.org
Thu Dec 18 01:24:31 PST 2014


On 18 December 2014 at 09:08, James Molloy <james at jamesmolloy.co.uk> wrote:
> Hi,
>
> Right. I'm aware of that. But to Clang, "armv8-a" as an architecture is
> ARMv8/AArch32. Unless Clang has recently got a lot cleverer than it has been
> in the past.

Hi James,

That's for march, not target. You still need to specify an "aarch64"
target, or Clang would not even recognise -march=armv8. If you specify
"arm" for the target, then -march=armv8 will, indeed, be AArch32.

cheers,
--renato



More information about the llvm-dev mailing list