Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 1 | From 4149a7627a998731cc246d3f58a36808745d04c8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Carl Hurd <carl@Carls-MacBook-Pro.local> |
| 3 | Date: Wed, 18 Jul 2018 09:04:32 -0400 |
| 4 | Subject: [PATCH] Fixed missed #ifndef for __mips_soft_float |
| 5 | |
| 6 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> |
| 7 | --- |
| 8 | Upstream-Status: Submitted [https://github.com/libffi/libffi/pull/442] |
| 9 | |
| 10 | src/mips/o32.S | 2 ++ |
| 11 | 1 file changed, 2 insertions(+) |
| 12 | |
| 13 | diff --git a/src/mips/o32.S b/src/mips/o32.S |
| 14 | index 44e74cb..799139b 100644 |
| 15 | --- a/src/mips/o32.S |
| 16 | +++ b/src/mips/o32.S |
| 17 | @@ -282,9 +282,11 @@ $LCFI12: |
| 18 | li $13, 1 # FFI_O32 |
| 19 | bne $16, $13, 1f # Skip fp save if FFI_O32_SOFT_FLOAT |
| 20 | |
| 21 | +#ifndef __mips_soft_float |
| 22 | # Store all possible float/double registers. |
| 23 | s.d $f12, FA_0_0_OFF2($fp) |
| 24 | s.d $f14, FA_1_0_OFF2($fp) |
| 25 | +#endif |
| 26 | 1: |
| 27 | # prepare arguments for ffi_closure_mips_inner_O32 |
| 28 | REG_L a0, 4($15) # cif |
| 29 | -- |
| 30 | 2.21.0 |
| 31 | |