in optimizer in case of bad table.
register byte *bp;
int i;
short index;
+ int npasses;
+ npasses = 0;
do { /* make pass over basicblock */
lpp = alpp; madeopt = FALSE;
while ((*lpp) != (line_p) 0 && ((*lpp)->l_instr&BMASK) != op_lab) {
}
lpp = next;
}
- } while(madeopt); /* as long as there is progress */
+ } while(madeopt && ++npasses<5000); /* as long as there is progress */
+ assert(!madeopt);
}