This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] Avoid warnings in compiling config/sh/sh.c


Richard Henderson <rth@redhat.com> wrote:
> On Thu, Oct 28, 2004 at 07:17:29PM +0900, Kaz Kojima wrote:
>> -  for (count = 0, reg = FIRST_PSEUDO_REGISTER - 1; reg >= 0; reg--)
>> +  for (count = 0, reg = FIRST_PSEUDO_REGISTER - 1; reg != 0; reg--)
> 
> Invalid transformation.  You now miss iterating with 0.

Oooops.  It should be

  for (count = 0, reg = FIRST_PSEUDO_REGISTER - 1; reg + 1 != 0; reg--)

I'll submit a revised patch after tests.

Regards,
	kaz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]