git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2500
4a8a32a2-be11-0410-ad9d-
d568d2c75423
/* of all instructions do */
for (ic = ebbs[i]->sch; ic; ic = ic->next) {
/* of all instructions do */
for (ic = ebbs[i]->sch; ic; ic = ic->next) {
// update the registers in use at the start of this icode
// update the registers in use at the start of this icode
- for (i=0; i<8; i++) {
- if (regs8051[i].isFree) {
- ic->riu &= ~(1<<regs8051[i].offset);
+ for (reg=0; reg<mcs51_nRegs; reg++) {
+ if (regs8051[reg].isFree) {
+ ic->riu &= ~(1<<regs8051[reg].offset);
- ic->riu |= (1<<regs8051[i].offset);
+ ic->riu |= (1<<regs8051[reg].offset);
createRegMask (ebbs, count);
/* redo that offsets for stacked automatic variables */
createRegMask (ebbs, count);
/* redo that offsets for stacked automatic variables */
+ if (currFunc) {
+ redoStackOffsets ();
+ }
if (options.dump_rassgn)
{
if (options.dump_rassgn)
{