[PATCH 3/3] cgcc: use -mfloat-abi=hard for armhf

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

 



So it will let Sparse set the others FP-related predefines
too, allows to handle override with -mfloat-abi=soft, ...

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

diff --git a/cgcc b/cgcc
index 629124b94..c42fee6de 100755
--- a/cgcc
+++ b/cgcc
@@ -326,7 +326,7 @@ sub add_specs {
 	my $cppsymbols = ' -m32';
 
 	if ($gccmachine eq 'arm-linux-gnueabihf') {
-	    $cppsymbols .= ' -D__ARM_PCS_VFP=1';
+	    $cppsymbols .= ' -mfloat-abi=hard';
 	}
 
 	return ($cppsymbols .
-- 
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