ARM integrated assembler - unknown directive errors

Hiya

I am trying to compile a test case with latest LLVM 3.3 release using integrated assembler. I have looked through previous mailing discussion on this subject and it appears that perhaps by now the appropriate changes are checked-in however my test case is failing. Maybe I am missing something and not specifying appropriate options on the commandline.

My setup:

Host operating System: Ubuntu 12
Cross toolchain: built latest release 3.3

If I need to provide more info please let me know

Cheers

test.c:
void main {return;}

commandline:
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

Errors:
ffconf.rmzKnl5U.s:2:2: error: unknown directive
.cpu cortex-a8
^
ffconf.rmzKnl5U.s:3:2: error: unknown directive
.eabi_attribute 6, 10
^

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
(15172 – ARM ELF parser does not recognize EABI attributes), but not the .cpu one.

Cheers.

Tim.

I changed the title to include all EABI attributes (to cover all that are
missing).

I also added Rehman's email as an easy way to reproduce the problem.

Thanks!
--renato