diff --git a/util/opt/reg.c b/util/opt/reg.c index 643fb9539..9c1081c6d 100644 --- a/util/opt/reg.c +++ b/util/opt/reg.c @@ -93,9 +93,14 @@ outregs() { incregusage(off) offset off; { register reg_p rp; +#ifndef GLOBAL_OPT + /* If we're optimizing the output of the global optimizer + * we must not change the count fields of the register messages. + */ for(rp=curpro.freg; rp != (reg_p) 0; rp=rp->r_next) if (rp->r_par[0]==off) { rp->r_par[3]++; return; } +#endif }