Rehman Saeed
2013-Sep-09 10:53 UTC
[LLVMdev] 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 ^ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130909/3f2484b2/attachment.html>
Tim Northover
2013-Sep-09 11:15 UTC
[LLVMdev] ARM integrated assembler - unknown directive errors
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.cHmm. 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.
Renato Golin
2013-Sep-09 11:25 UTC
[LLVMdev] ARM integrated assembler - unknown directive errors
On 9 September 2013 12:15, Tim Northover <t.p.northover at gmail.com> wrote:> 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. >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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130909/b6c43b14/attachment.html>
Seemingly Similar Threads
- [LLVMdev] ARM integrated assembler - unknown directive errors
- [LLVMdev] Adding "S" suffixed ARM/Thumb2 instructions
- [LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
- [LLVMdev] Adding "S" suffixed ARM/Thumb2 instructions
- [cfe-dev] ARM float16 intrinsic test