History

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.

Thomas Preud'homme committed 13 years ago

Commit 6eec9311 parent 15a315f1 file · +2 −0Browse files

Unified · Split

arm-gen.c+2−0
@@ -1053,10 +1053,12 @@ void gfunc_call(int nb_args) · 1052 unmodified lines
1053 for(i = 0; i < keep; i++) {1053 for(i = 0; i < keep; i++) {
1054 vrotb(keep);1054 vrotb(keep);
1055 gv(regmask(plan2[i]));1055 gv(regmask(plan2[i]));
1056#ifdef TCC_ARM_HARDFLOAT
1056 /* arg is in s(2d+1): plan2[i]<plan2[i+1] => alignment occured (ex f,d,f) */1057 /* arg is in s(2d+1): plan2[i]<plan2[i+1] => alignment occured (ex f,d,f) */
1057 if (i < keep - 1 && is_float(vtop->type.t) && (plan2[i] <= plan2[i + 1])) {1058 if (i < keep - 1 && is_float(vtop->type.t) && (plan2[i] <= plan2[i + 1])) {
1058 o(0xEEF00A40|(vfpr(plan2[i])<<12)|vfpr(plan2[i]));1059 o(0xEEF00A40|(vfpr(plan2[i])<<12)|vfpr(plan2[i]));
1059 }1060 }
1061#endif
1060 }1062 }
1061save_regs(keep); /* save used temporary registers */1063save_regs(keep); /* save used temporary registers */
1062 keep++;1064 keep++;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t