mirror of
https://github.com/frida/tinycc
synced 2025-01-04 11:04:42 +03:00
Only reference vfpr when available
A line in gfunc_call in arm-gen.c is referencing vfpr unconditionally. Yet, this function is only available when TCC_ARM_VFP is set. While this code is only triggered when TCC_ARM_VFP, it fails at compile time. This commit fix the problem.
This commit is contained in:
parent
15a315f4a5
commit
6eec931038
@ -1053,10 +1053,12 @@ void gfunc_call(int nb_args)
|
||||
for(i = 0; i < keep; i++) {
|
||||
vrotb(keep);
|
||||
gv(regmask(plan2[i]));
|
||||
#ifdef TCC_ARM_HARDFLOAT
|
||||
/* arg is in s(2d+1): plan2[i]<plan2[i+1] => alignment occured (ex f,d,f) */
|
||||
if (i < keep - 1 && is_float(vtop->type.t) && (plan2[i] <= plan2[i + 1])) {
|
||||
o(0xEEF00A40|(vfpr(plan2[i])<<12)|vfpr(plan2[i]));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
save_regs(keep); /* save used temporary registers */
|
||||
keep++;
|
||||
|
Loading…
Reference in New Issue
Block a user