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
1015ST_FUNC Sym *external_global_sym(int v, CType *type, int r);1015ST_FUNC Sym *external_global_sym(int v, CType *type, int r);
1016ST_FUNC void vset(CType *type, int r, int v);1016ST_FUNC void vset(CType *type, int r, int v);
1017ST_FUNC void vswap(void);1017ST_FUNC void vswap(void);
1018ST_FUNC void vpushv(SValue *v);
1018ST_FUNC void save_reg(int r);1019ST_FUNC void save_reg(int r);
1019ST_FUNC int get_reg(int rc);1020ST_FUNC int get_reg(int rc);
1020ST_FUNC void save_regs(int n);1021ST_FUNC void save_regs(int n);
tccgen.c+1−1
@@ -400,7 +400,7 @@ ST_FUNC void vswap(void) · 399 unmodified lines
400 vtop[-1] = tmp;400 vtop[-1] = tmp;
401}401}
402 402
403static void vpushv(SValue *v)403ST_FUNC void vpushv(SValue *v)
404{404{
405 if (vtop >= vstack + (VSTACK_SIZE - 1))405 if (vtop >= vstack + (VSTACK_SIZE - 1))
406 error("memory full");406 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
1620 sv->sym->type.t = t & ~VT_IMPORT;1620 sv->sym->type.t = t & ~VT_IMPORT;
1621 //printf("import %x %04x %s\n", t, ind, get_tok_str(sv->sym->v, NULL));1621 //printf("import %x %04x %s\n", t, ind, get_tok_str(sv->sym->v, NULL));
1622 1622
1623 *++vtop = *sv;1623 vpushv(sv);
1624 vtop->type.t &= ~(VT_ARRAY|VT_IMPORT);1624 vtop->type.t &= ~(VT_ARRAY|VT_IMPORT);
1625 mk_pointer(&vtop->type);1625 mk_pointer(&vtop->type);
1626 indir();1626 indir();
x86_64-gen.c+1−1
@@ -611,7 +611,7 @@ void gfunc_call(int nb_args) · 610 unmodified lines
611 611
612 /* generate memcpy call */612 /* generate memcpy call */
613 vset(&sv->type, r | VT_LVAL, 0);613 vset(&sv->type, r | VT_LVAL, 0);
614 *++vtop = *sv;614 vpushv(sv);
615 vstore();615 vstore();
616 --vtop;616 --vtop;
617 617

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