diff mbox series

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

Message ID 20190217150140.93405-4-luc.vanoostenryck@gmail.com (mailing list archive)
State Deferred, archived
Headers show
Series teach sparse about floating-point ABI (on ARM) | expand

Commit Message

Luc Van Oostenryck Feb. 17, 2019, 3:01 p.m. UTC
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@gmail.com>
---
 cgcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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 .