Re: PR 55359: ICE on invalid subreg in simplify_subreg

2012-11-19 Thread Jakub Jelinek
On Mon, Nov 19, 2012 at 11:07:23PM +, Richard Sandiford wrote: > PR middle-end/55359 > * simplify-rtx.c (simplify_subreg): Return null for invalid offsets. > > gcc/testsuite/ > * gcc.target/i386/pr55359.c: New test. Ok, thanks. Jakub

PR 55359: ICE on invalid subreg in simplify_subreg

2012-11-19 Thread Richard Sandiford
This patch fixes PR 55359, which is an ICE caused by my removal of a validate_subreg call in: http://gcc.gnu.org/ml/gcc-patches/2012-10/msg01353.html The question then is whether the caller of simplify_(gen_)subreg is responsible for checking whether a subreg is valid, or whether the simplifi