History

use vpushv in some places

grischka committed 16 years ago

Commit 4a01eb01 parent 50b040e4 files · +4 −3Browse files

Unified · Split

4 files
  1. tcc.h +1 −0
  2. tccgen.c +1 −1
  3. tccpe.c +1 −1
  4. x86_64-gen.c +1 −1
tcc.h+1−0
@@ -1015,6 +1015,7 @@ ST_FUNC void vpushi(int v); · 1014 unmodified lines
10151015 ST_FUNC Sym *external_global_sym(int v, CType *type, int r);
10161016 ST_FUNC void vset(CType *type, int r, int v);
10171017 ST_FUNC void vswap(void);
1018+ST_FUNC void vpushv(SValue *v);
10181019 ST_FUNC void save_reg(int r);
10191020 ST_FUNC int get_reg(int rc);
10201021 ST_FUNC void save_regs(int n);
tccgen.c+1−1
@@ -400,7 +400,7 @@ ST_FUNC void vswap(void) · 399 unmodified lines
400400 vtop[-1] = tmp;
401401 }
402402
403−static void vpushv(SValue *v)
403+ST_FUNC void vpushv(SValue *v)
404404 {
405405 if (vtop >= vstack + (VSTACK_SIZE - 1))
406406 error("memory full");
tccpe.c+1−1
@@ -1620,7 +1620,7 @@ ST_FUNC int pe_dllimport(int r, SValue *sv, void (*fn)(int r, SValue *sv)) · 1619 unmodified lines
16201620 sv->sym->type.t = t & ~VT_IMPORT;
16211621 //printf("import %x %04x %s\n", t, ind, get_tok_str(sv->sym->v, NULL));
16221622
1623− *++vtop = *sv;
1623+ vpushv(sv);
16241624 vtop->type.t &= ~(VT_ARRAY|VT_IMPORT);
16251625 mk_pointer(&vtop->type);
16261626 indir();
x86_64-gen.c+1−1
@@ -611,7 +611,7 @@ void gfunc_call(int nb_args) · 610 unmodified lines
611611
612612 /* generate memcpy call */
613613 vset(&sv->type, r | VT_LVAL, 0);
614− *++vtop = *sv;
614+ vpushv(sv);
615615 vstore();
616616 --vtop;
617617

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