Fixes the case where the structure is not returned in registers.
Unified · Split
| @@ -1217,6 +1217,7 @@ void gfunc_prolog(CType *func_type) · 1216 unmodified lines | |||
| 1217 | int addr, pn = struct_ret, sn = 0; /* pn=core, sn=stack */ | 1217 | int addr, pn = struct_ret, sn = 0; /* pn=core, sn=stack */ |
| 1218 | 1218 | ||
| 1219 | #ifdef TCC_ARM_HARDFLOAT | 1219 | #ifdef TCC_ARM_HARDFLOAT |
| 1220 | func_vc += nf * 4; | ||
| 1220 | avregs = AVAIL_REGS_INITIALIZER; | 1221 | avregs = AVAIL_REGS_INITIALIZER; |
| 1221 | #endif | 1222 | #endif |
| 1222 | while ((sym = sym->next)) { | 1223 | while ((sym = sym->next)) { |