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
10531053 for(i = 0; i < keep; i++) {
10541054 vrotb(keep);
10551055 gv(regmask(plan2[i]));
1056+#ifdef TCC_ARM_HARDFLOAT
10561057 /* arg is in s(2d+1): plan2[i]<plan2[i+1] => alignment occured (ex f,d,f) */
10571058 if (i < keep - 1 && is_float(vtop->type.t) && (plan2[i] <= plan2[i + 1])) {
10581059 o(0xEEF00A40|(vfpr(plan2[i])<<12)|vfpr(plan2[i]));
10591060 }
1061+#endif
10601062 }
10611063 save_regs(keep); /* save used temporary registers */
10621064 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