History

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.

Thomas Preud'homme committed 12 years ago

Commit 6f6ed8a1 parent b8610f11 file · +3 −0Browse files

Unified · Split

arm-gen.c+3−0
@@ -186,6 +186,9 @@ ST_FUNC void arm_init(struct TCCState *s) · 185 unmodified lines
186186 func_double_type.ref = sym_push(SYM_FIELD, &double_type, FUNC_CDECL, FUNC_OLD);
187187
188188 float_abi = s->float_abi;
189+#ifndef TCC_ARM_HARDFLOAT
190+ tcc_warning("soft float ABI currently not supported: default to softfp");
191+#endif
189192 }
190193 #else
191194 #define func_float_type func_old_type

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t