Skip to content

Commit

Permalink
harmonize with dmc++ back end
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jun 2, 2014
1 parent 9d48c47 commit 50b6d84
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/backend/cgreg.c
Expand Up @@ -73,7 +73,7 @@ void cgreg_init()
{ unsigned sz;
symbol *s = globsym.tab[i];

//printf("candidate '%s' for register\n",s->Sident);
//printf("considering candidate '%s' for register\n",s->Sident);

if (s->Srange)
s->Srange = vec_realloc(s->Srange,dfotop);
Expand All @@ -89,7 +89,17 @@ void cgreg_init()
{
#ifdef DEBUG
if (debugr)
{
printf("not considering variable '%s' for register\n",s->Sident);
if (!(s->Sflags & GTregcand))
printf("\tnot GTregcand\n");
if (!s->Srange)
printf("\tno Srange\n");
if (sz == 0)
printf("\tsz == 0\n");
if (tysize(s->ty()) == -1)
printf("\ttysize\n");
}
#endif
s->Sflags &= ~GTregcand;
continue;
Expand Down
2 changes: 2 additions & 0 deletions src/backend/cod1.c
Expand Up @@ -2481,6 +2481,8 @@ static int type_jparam2(type *t, tym_t ty)

int FuncParamRegs::alloc(type *t, tym_t ty, reg_t *preg1, reg_t *preg2)
{
//printf("FuncParamRegs::alloc(ty = TY%s)\n", tystring[tybasic(ty)]);
//if (t) type_print(t);
++i;

*preg1 = NOREG;
Expand Down
1 change: 1 addition & 0 deletions src/backend/debug.c
Expand Up @@ -334,6 +334,7 @@ void WRblock(block *b)
dbg_printf("********* Basic Block %p ************\n",b);
if (b->Belem) elem_print(b->Belem);
dbg_printf("block: ");
printf("%p %d ", b, b->BC);
WRBC(b->BC);
dbg_printf(" Btry=%p Bindex=%d",b->Btry,b->Bindex);
dbg_printf("\n");
Expand Down

0 comments on commit 50b6d84

Please sign in to comment.