[PATCH] Fix *two* AVR backend bugs (PR19293 + PR19329)

Andrew Pinski pinskia@physics.uc.edu
Mon Jan 24 00:49:00 GMT 2005


On Jan 23, 2005, at 7:39 PM, Bernardo Innocenti wrote:

> The shift by 0 slips through also in 3.4.2/3.4.3 as reported
> in PR19329.  I never saw out of range shifts in 3.4, so this
> may be a 4.0 regression.

Well if you have the following:

int f(int i)
{
   int j = -1;
   return i<<j;
}

You will get at expand time i<<-1 so have a regression since
it now ICEs but before it did not because we did not do
propagation at the tree level before but the bug was latent.

-- Pinski  



More information about the Gcc-patches mailing list