Re: [PATCH] Fix PR54674

2012-09-25 Thread William J. Schmidt
On Tue, 2012-09-25 at 09:14 +0200, Richard Guenther wrote: > On Mon, 24 Sep 2012, William J. Schmidt wrote: > > > In cases where pointers and ints are cast back and forth, SLSR can be > > tricked into introducing a multiply where one of the operands is of > > pointer type. Don't do that! > > >

Re: [PATCH] Fix PR54674

2012-09-25 Thread Richard Guenther
On Mon, 24 Sep 2012, William J. Schmidt wrote: > In cases where pointers and ints are cast back and forth, SLSR can be > tricked into introducing a multiply where one of the operands is of > pointer type. Don't do that! > > Verified that the reduced test case in the PR is fixed with a > cross-co

[PATCH] Fix PR54674

2012-09-24 Thread William J. Schmidt
In cases where pointers and ints are cast back and forth, SLSR can be tricked into introducing a multiply where one of the operands is of pointer type. Don't do that! Verified that the reduced test case in the PR is fixed with a cross-compile to sh4-unknown-linux-gnu with -Os, which is the only k