OSDN Git Service

[nyc-arc] Fix cheets-libffi compilation on ARM
authorLuis Hector Chavez <lhchavez@google.com>
Fri, 7 Oct 2016 21:04:21 +0000 (14:04 -0700)
committerLuis Hector Chavez <lhchavez@google.com>
Fri, 7 Oct 2016 21:07:35 +0000 (14:07 -0700)
This is a bug in LLVM: https://llvm.org/bugs/show_bug.cgi?id=20595 . It
was marked as WONTFIX and later fixed upstream in libffi in a different
way via https://github.com/libffi/libffi/commit/e7f15f60e but it does
not cleanly apply. Instead, use the fix mentioned in the LLVM bug
thread.

Bug: 31833456
Test: lunch cheets_arm-eng && m
Change-Id: I602c32dd1463e8aeca95cd06dd19193dee008114

src/arm/sysv.S

index 541bbe9..c2b9f0e 100644 (file)
@@ -396,7 +396,7 @@ LSYM(Lbase_args):
        beq     LSYM(Lepilogue_vfp)
 
        cmp     r3, #FFI_TYPE_SINT64
-       stmeqia r2, {r0, r1}
+       stmiaeq r2, {r0, r1}
        beq     LSYM(Lepilogue_vfp)
 
        cmp     r3, #FFI_TYPE_FLOAT