From 6f6ed8acc795b8f3367b46eed7b78f4f0a4584ff Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <robotux@celest.fr>
Date: Tue, 25 Mar 2014 19:54:04 +0800
Subject: [PATCH] Warn about soft float ABI not being supported

For ARM target, tcc uses the soft float ABI when not asked to use hard
float ABI. This means machine without a VFP co-processor generate code
that they cannot run. This commit add a warning for such cases.
---
 arm-gen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arm-gen.c b/arm-gen.c
index 9aa093eb..1ee008f0 100644
--- a/arm-gen.c
+++ b/arm-gen.c
@@ -186,6 +186,9 @@ ST_FUNC void arm_init(struct TCCState *s)
     func_double_type.ref = sym_push(SYM_FIELD, &double_type, FUNC_CDECL, FUNC_OLD);
 
     float_abi = s->float_abi;
+#ifndef TCC_ARM_HARDFLOAT
+    tcc_warning("soft float ABI currently not supported: default to softfp");
+#endif
 }
 #else
 #define func_float_type func_old_type