improved check for loop
This commit is contained in:
parent
341918027a
commit
b2b5e94344
@ -642,10 +642,11 @@ basicblock(alpp) line_p *alpp; {
|
||||
}
|
||||
if (lpp == next) {
|
||||
count++;
|
||||
if (count > 100) {
|
||||
if (count > 1000) {
|
||||
/* probably loop in table */
|
||||
fprintf(stderr, "Warning: possible loop in patterns; call an expert\n");
|
||||
next = &((*lpp)->l_next);
|
||||
count = 0;
|
||||
}
|
||||
}
|
||||
else count = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user