Re: [patch] Fix PR middle-end/51994

2012-02-07 Thread Richard Guenther
On Tue, Feb 7, 2012 at 10:50 AM, Eric Botcazou wrote: > Hi, > > this is a regression present on mainline and 4.6 branch, apparently a fallout > of the MEM_REF introduction.  get_inner_reference can be called on MEM_REFs > whose base has been shifted to the left > >  char *output = buf; > >  output

[patch] Fix PR middle-end/51994

2012-02-07 Thread Eric Botcazou
Hi, this is a regression present on mainline and 4.6 branch, apparently a fallout of the MEM_REF introduction. get_inner_reference can be called on MEM_REFs whose base has been shifted to the left char *output = buf; output += a; output -= 1; output[0]; and, since the constant negat