aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arm-gen.c4
-rw-r--r--tcc.h1
-rw-r--r--tccgen.c16
3 files changed, 2 insertions, 19 deletions
diff --git a/arm-gen.c b/arm-gen.c
index b7e8665..4915a3e 100644
--- a/arm-gen.c
+++ b/arm-gen.c
@@ -798,7 +798,7 @@ void gfunc_call(int nb_args)
}
args_size = keep = 0;
for(i = 0;i < nb_args; i++) {
- vnrott(keep+1);
+ vrotb(keep+1);
if ((vtop->type.t & VT_BTYPE) == VT_STRUCT) {
size = type_size(&vtop->type, &align);
/* align to stack align size */
@@ -911,7 +911,7 @@ save_regs(keep); /* save used temporary registers */
}
args_size-=n*4;
}
- vnrott(keep);
+ vrotb(keep);
func_sym = vtop->type.ref;
gcall_or_jmp(0);
if (args_size)
diff --git a/tcc.h b/tcc.h
index bfd7e9c..7ba6ac9 100644
--- a/tcc.h
+++ b/tcc.h
@@ -1140,7 +1140,6 @@ ST_FUNC void vpush_global_sym(CType *type, int v);
ST_FUNC void vrott(int n);
#ifdef TCC_TARGET_ARM
ST_FUNC int get_reg_ex(int rc, int rc2);
-ST_FUNC void vnrott(int n);
ST_FUNC void lexpand_nr(void);
#endif
ST_FUNC void vpushv(SValue *v);
diff --git a/tccgen.c b/tccgen.c
index 3cf3715..5aa21c6 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -967,22 +967,6 @@ ST_FUNC void vrott(int n)
vtop[-n + 1] = tmp;
}
-#ifdef TCC_TARGET_ARM
-/* like vrott but in other direction
- In ... I1 -> I(n-1) ... I1 In [top is right]
- */
-ST_FUNC void vnrott(int n)
-{
- int i;
- SValue tmp;
-
- tmp = vtop[-n + 1];
- for(i = n - 1; i > 0; i--)
- vtop[-i] = vtop[-i + 1];
- vtop[0] = tmp;
-}
-#endif
-
/* pop stack value */
ST_FUNC void vpop(void)
{