The attached patch implements iasm_memory_clobber so that cc1 links correctly on arm targets. Best Regards, Rafael -------------- next part -------------- A non-text attachment was scrubbed... Name: gcc.patch Type: application/octet-stream Size: 570 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061003/947791cb/attachment.obj>
On Oct 3, 2006, at 6:35 AM, Rafael EspĂndola wrote:> The attached patch implements iasm_memory_clobber so that cc1 links > correctly on arm targets. > > Best Regards, > Rafael > <gcc.patch>Thanks. Applied. iasm_memory_clobber() used to support CW style ASM statements in Apple version of GCC. CW Style ASM statements are not supported in FSF GCC. - Devang
On Tue, 3 Oct 2006, [UTF-8] Rafael Esp?ndola wrote:> The attached patch implements iasm_memory_clobber so that cc1 links > correctly on arm targets.I applied this patch to llvm-gcc, hopefully it will fix building on all non-darwin platforms. It looks like this patch got lost in a recent merge. I will try to get this fixed upstream so this doesn't occur next merge. Thanks! -Chris Index: c-common.c ==================================================================--- c-common.c (revision 118526) +++ c-common.c (working copy) @@ -7184,6 +7184,8 @@ sexpr = build_string (strlen (iasm_buffer), iasm_buffer); clobbers = uses; + /* APPLE LOCAL LLVM portability to other platforms! */ +#ifdef TARGET_MACHO if (iasm_memory_clobber (opcodename)) { /* To not clobber all of memory, we would need to know what @@ -7192,6 +7194,8 @@ build_string (6, "memory"), clobbers); } + /* APPLE LOCAL LLVM portability to other platforms! */ +#endif /* Perform default conversions on function inputs. Don't do this for other types as it would screw up operands
Seemingly Similar Threads
- [LLVMdev] Consumer ARM platform suitable for LLVM development?
- [LLVMdev] Consumer ARM platform suitable for LLVM development?
- [LLVMdev] Accessing instruction/operand names
- [LLVMdev] Consumer ARM platform suitable for LLVM development?
- [LLVMdev] Consumer ARM platform suitable for LLVM development?