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:
parent
be1b6ba7b7
commit
4d86b20701
1 changed files with 1 additions and 0 deletions
|
|
@ -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)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue