Made a mix of a new cgg(with TEM_WSIZE) and the obsolete

variable (T)EM_BSIZE feature.
This commit is contained in:
keie 1985-02-05 15:26:47 +00:00
parent 9d84b2cff8
commit a189655b8b

View File

@ -27,7 +27,7 @@ con_part(sz,w) register sz; word w; {
while (part_size % sz) while (part_size % sz)
part_size++; part_size++;
if (part_size == EM_WSIZE) if (part_size == TEM_WSIZE)
part_flush(); part_flush();
if (sz == 1) { if (sz == 1) {
w &= 0xFF; w &= 0xFF;
@ -104,7 +104,7 @@ struct regsav_t {
int regnr; int regnr;
int nr_a_regs,nr_d_regs; int nr_a_regs,nr_d_regs;
int EM_BSIZE; int TEM_BSIZE;
static long nlocals; static long nlocals;
prolog(n) prolog(n)
@ -116,7 +116,7 @@ i_regsave()
regnr = 0; regnr = 0;
nr_a_regs = 0; nr_a_regs = 0;
nr_d_regs = 0; nr_d_regs = 0;
EM_BSIZE = 0; TEM_BSIZE = 0;
} }
#define MOVEM_LIMIT 2 #define MOVEM_LIMIT 2
@ -160,7 +160,7 @@ save()
} }
/* Compute AB - LB */ /* Compute AB - LB */
EM_BSIZE = 4 * (nr_d_regs + nr_a_regs) + 10; TEM_BSIZE = 4 * (nr_d_regs + nr_a_regs) + 10;
/* allocate space for local variables */ /* allocate space for local variables */
fprintf(codefile,"tst.b -%D(sp)\nlink\ta6,#-%D\n",nlocals+40,nlocals); fprintf(codefile,"tst.b -%D(sp)\nlink\ta6,#-%D\n",nlocals+40,nlocals);
@ -170,7 +170,7 @@ save()
if (p->rs_off >= 0) { if (p->rs_off >= 0) {
fprintf(codefile,"move.%c %ld(a6),%s\n", fprintf(codefile,"move.%c %ld(a6),%s\n",
(p->rs_size == 4 ? 'l' : 'w'), (p->rs_size == 4 ? 'l' : 'w'),
p->rs_off + EM_BSIZE, p->rs_off + TEM_BSIZE,
p->rs_reg); p->rs_reg);
} }
} }