[PATCH 2/3] teach sparse about -msoft-float

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Teach Sparse about this option (which on ARM should be
equivalent to '-mfloat-abi=soft').

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 lib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib.c b/lib.c
index ee6353939..43a1f3c73 100644
--- a/lib.c
+++ b/lib.c
@@ -470,6 +470,8 @@ static char **handle_switch_m(char *arg, char **next)
 		arch_big_endian = 1;
 	} else if (!strcmp(arg, "mlittle-endian")) {
 		arch_big_endian = 0;
+	} else if (!strcmp(arg, "msoft-float")) {
+		fp_abi = FP_ABI_SOFT;
 	}
 	return next;
 }
-- 
2.20.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux