When no VFP arguments are present the IP register is used

uninitialized. Initialize it to the value of FP.

This fixes a number of testsuite failures when configured for
armv7l-unknown-linux-gnueabihf
This commit is contained in:
Anthony Green
2014-02-28 00:20:17 -05:00
parent 49f7729c3c
commit 001aaf4b1b
2 changed files with 5 additions and 0 deletions

View File

@@ -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> 2014-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the * src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the

View File

@@ -353,6 +353,7 @@ ARM_FUNC_START(ffi_call_VFP)
@ Load VFP register args if needed @ Load VFP register args if needed
cmp r0, #0 cmp r0, #0
mov ip, fp
beq LSYM(Lbase_args) beq LSYM(Lbase_args)
@ Load only d0 if possible @ Load only d0 if possible