mirror of
https://github.com/frida/tinycc
synced 2024-11-24 08:39:37 +03:00
Remove vnrott (duplicate vrotb)
This commit is contained in:
parent
3d25213c16
commit
53c5715cca
@ -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)
|
||||
|
1
tcc.h
1
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);
|
||||
|
16
tccgen.c
16
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user