[LLVMdev] ARM integrated assembler - unknown directive errors

Tim Northover t.p.northover at gmail.com
Mon Sep 9 04:15:20 PDT 2013


Hi,

> arm-linux-clang
> -Iarm-2013.05-24-arm-none-linux/arm-none-linux-gnueabi/libc/usr/include
> -integrated-as -msoft-float -save-temps -O3 -mcpu=cortex-a8 -c -o test.o
> test.c

Hmm. It looks like save-temps is interfering with integrated-as.
What's happening is that Clang is quite capable of taking those
directives from CodeGen and putting them in an object file (the normal
integrated-as route) but can't parse them from a .s file.

When both integrated-as and keep-temps are specified Clang outputs a
real .s file and then (because it's been told to use itself as the
assembler) tries to reparse it. And fails.

We seem to have a bug for the .eabi_attribute one
(http://llvm.org/bugs/show_bug.cgi?id=15172), but not the .cpu one.

Cheers.

Tim.



More information about the llvm-dev mailing list