improved check for loop
This commit is contained in:
parent
64c2ad3838
commit
67e5a8e7a5
1 changed files with 2 additions and 1 deletions
|
@ -642,10 +642,11 @@ basicblock(alpp) line_p *alpp; {
|
||||||
}
|
}
|
||||||
if (lpp == next) {
|
if (lpp == next) {
|
||||||
count++;
|
count++;
|
||||||
if (count > 100) {
|
if (count > 1000) {
|
||||||
/* probably loop in table */
|
/* probably loop in table */
|
||||||
fprintf(stderr, "Warning: possible loop in patterns; call an expert\n");
|
fprintf(stderr, "Warning: possible loop in patterns; call an expert\n");
|
||||||
next = &((*lpp)->l_next);
|
next = &((*lpp)->l_next);
|
||||||
|
count = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else count = 0;
|
else count = 0;
|
||||||
|
|
Loading…
Reference in a new issue