When no VFP arguments are present the IP register is used
authorAnthony Green <green@moxielogic.com>
Fri, 28 Feb 2014 05:20:17 +0000 (00:20 -0500)
committerAnthony Green <green@moxielogic.com>
Fri, 28 Feb 2014 05:20:17 +0000 (00:20 -0500)
uninitialized. Initialize it to the value of FP.

This fixes a number of testsuite failures when configured for
armv7l-unknown-linux-gnueabihf

ChangeLog
src/arm/sysv.S

index ca24a095bba71231ded396ca6fd072f1bae88a7e..d2a38a0f9e9ea74242e975cbb363adf6cfe4b9be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-28  Will Newton  <will.newton@linaro.org>
+
+       * src/arm/sysv.S: Initialize IP register with FP.
+
 2014-02-28  Yufeng Zhang  <yufeng.zhang@arm.com>
 
        * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
index 595ea3397a15c60cb00eb9b4b8c61bbb7b8f4ec2..541bbe92300219fe3cbecc1e52c8e788449aaeaa 100644 (file)
@@ -353,6 +353,7 @@ ARM_FUNC_START(ffi_call_VFP)
 
        @ Load VFP register args if needed
        cmp     r0, #0
+       mov     ip, fp
        beq     LSYM(Lbase_args)
 
        @ Load only d0 if possible