pike.git/
src/
peep.c
Branch:
Tag:
Non-build tags
All tags
No tags
1997-07-20
1997-07-20 16:27:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
b11eaa9ee4365abb37df214cf5c46f02407b02c2 (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix
Rev: src/peep.c:1.13
157:
max_label = c->arg;
-
+
labels=(INT32 *)xalloc(sizeof(INT32) * (max_label+1)); jumps=(INT32 *)xalloc(sizeof(INT32) * (max_label+1)); uses=(INT32 *)xalloc(sizeof(INT32) * (max_label+1));
182:
int tmp,tmp2; tmp=labels[c[e].arg];
-
while(c[tmp].opcode == F_LABEL ||
-
c[tmp].opcode == F_NOP) tmp++;
+
while(
tmp<length &&
+
(
c[tmp].opcode == F_LABEL ||
+
c[tmp].opcode == F_NOP)
)
tmp++;
-
+
if(tmp>=length) break;
+
if(c[tmp].opcode==F_BRANCH) { c[e].arg=c[tmp].arg;