From: David Rientjes Date: Wed, 16 Aug 2006 17:14:44 GMT Subject: Re: [PATCH] remove inline iteration variable Message-ID: In-Reply-To: <81b0412b0608160027l2ac53c10gd9a75525ca144f1d@mail.gmail.com> On Wed, 16 Aug 2006, Alex Riesen wrote: > On 8/15/06, David Rientjes wrote: > > Remove unnecessary iteration variable in inline. > > - for (i = 0; i < in; i++) putchar(' '); > > + for (; in > 0; in--) > > while(in--) putchar(' '); > That goes into an infinite loop if the argument is negative because it emits a cmpl $0, x(%ebp). Should never happen, but there's no reason not to prevent it with a for loop. David