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.
Unified · Split
| @@ -186,6 +186,9 @@ ST_FUNC void arm_init(struct TCCState *s) · 185 unmodified lines | ||
| 186 | 186 | func_double_type.ref = sym_push(SYM_FIELD, &double_type, FUNC_CDECL, FUNC_OLD); |
| 187 | 187 | |
| 188 | 188 | float_abi = s->float_abi; |
| 189 | +#ifndef TCC_ARM_HARDFLOAT | |
| 190 | + tcc_warning("soft float ABI currently not supported: default to softfp"); | |
| 191 | +#endif | |
| 189 | 192 | } |
| 190 | 193 | #else |
| 191 | 194 | #define func_float_type func_old_type |