ARM hardfloat: fix struct return with float/double args

Fixes the case where the structure is not returned in registers.
This commit is contained in:
Daniel Glöckner 2013-05-01 16:17:54 +02:00
parent be1b6ba7b7
commit 4d86b20701

View File

@ -1217,6 +1217,7 @@ void gfunc_prolog(CType *func_type)
int addr, pn = struct_ret, sn = 0; /* pn=core, sn=stack */ int addr, pn = struct_ret, sn = 0; /* pn=core, sn=stack */
#ifdef TCC_ARM_HARDFLOAT #ifdef TCC_ARM_HARDFLOAT
func_vc += nf * 4;
avregs = AVAIL_REGS_INITIALIZER; avregs = AVAIL_REGS_INITIALIZER;
#endif #endif
while ((sym = sym->next)) { while ((sym = sym->next)) {