[LLVMdev] [patch] fix gcc build failure on arm

Chris Lattner sabre at nondot.org
Tue Oct 3 12:20:26 PDT 2006

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 



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! */
    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"),
+  /* APPLE LOCAL LLVM portability to other platforms! */

    /* Perform default conversions on function inputs.
       Don't do this for other types as it would screw up operands

More information about the llvm-dev mailing list