diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2012-03-14 15:39:16 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2012-03-14 15:39:16 +0100 |
| commit | 53c5715cca20231c47ccef9d17d440334f4a318e (patch) | |
| tree | 8f092ab0e62bb1130b6133137cc582cc5b67c0dc | |
| parent | 3d25213c16f937356f49655e485b53beea267c54 (diff) | |
| download | tinycc-53c5715cca20231c47ccef9d17d440334f4a318e.tar.gz tinycc-53c5715cca20231c47ccef9d17d440334f4a318e.tar.bz2 | |
Remove vnrott (duplicate vrotb)
| -rw-r--r-- | arm-gen.c | 4 | ||||
| -rw-r--r-- | tcc.h | 1 | ||||
| -rw-r--r-- | tccgen.c | 16 |
3 files changed, 2 insertions, 19 deletions
@@ -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) @@ -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); @@ -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) { |
