mirror of
https://github.com/frida/tinycc
synced 2024-12-25 14:36:49 +03:00
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
@ -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…
Reference in New Issue
Block a user