Branch: Tag:

1997-07-20

1997-07-20 16:27:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

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;