Forgot to coorect the adjustment of the def's offset (yet I knew I was supposed to :P)
This commit is contained in:
parent
f48d41848a
commit
992aa04994
|
@ -152,13 +152,14 @@ dump_functions (progs_t *pr)
|
||||||
else
|
else
|
||||||
comment = va (" = #%d", -start);
|
comment = va (" = #%d", -start);
|
||||||
|
|
||||||
printf ("%-5d %s%s: %d", i, name, comment, func->numparms);
|
printf ("%-5d %s%s: %d (", i, name, comment, func->numparms);
|
||||||
if (func->numparms < 0)
|
if (func->numparms < 0)
|
||||||
count = -func->numparms - 1;
|
count = -func->numparms - 1;
|
||||||
else
|
else
|
||||||
count = func->numparms;
|
count = func->numparms;
|
||||||
for (j = 0; j < count; j++)
|
for (j = 0; j < count; j++)
|
||||||
printf (" %d", func->parm_size[j]);
|
printf (" %d", func->parm_size[j]);
|
||||||
|
printf (") %d @ %d", func->locals, func->parm_start);
|
||||||
puts ("");
|
puts ("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -464,7 +464,7 @@ finish_compilation (void)
|
||||||
num_localdefs += f->scope->space->size;
|
num_localdefs += f->scope->space->size;
|
||||||
}
|
}
|
||||||
for (def = f->scope->head; def; def = def->def_next) {
|
for (def = f->scope->head; def; def = def->def_next) {
|
||||||
def->ofs += pr.near_data->size;
|
def->ofs += df->parm_start;
|
||||||
relocate_refs (def->refs, def->ofs);
|
relocate_refs (def->refs, def->ofs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue