Re: Reload related segfaults

2011-11-04 Thread Eric Botcazou
> OK to apply, assuming no regressions? > > * reload1.c (gen_reload): Don't use REGNO on SUBREGs. > * print-rtl.c (print_rtx): Don't segfault on negative regno. OK, thanks. -- Eric Botcazou

Re: Reload related segfaults

2011-11-04 Thread Alan Modra
Ping http://gcc.gnu.org/ml/gcc-patches/2011-10/msg02429.html Eric fixed the bootstrap breakage by another patch, but there is a fairly obvious bug in gen_reload fixed by my patch. I gave enough contect in the diff that you don't even need to look at the file. :) -- Alan Modra Australia Developm

Re: Reload related segfaults

2011-10-27 Thread Eric Botcazou
> Tentative fix attached, it should restore the old behavior for the cases > where everything was working fine before. I'm going to give it some > testing. > > > PR rtl-optimization/46603 > * reload.c (push_reload): In the out case, restore previous behavior > for subregs that do

Re: Reload related segfaults

2011-10-27 Thread Iain Sandoe
On 27 Oct 2011, at 11:33, Eric Botcazou wrote: The crash is in find_valid_class() called from push_reload(), via this code block around line 1184 of reload.c: enum reg_class in_out_class = find_valid_class (outmode, GET_MODE (SUBREG_REG (out)), subreg

Re: Reload related segfaults

2011-10-27 Thread Eric Botcazou
> The crash is in find_valid_class() called from push_reload(), via this > code block around line 1184 of reload.c: > > enum reg_class in_out_class > = find_valid_class (outmode, GET_MODE (SUBREG_REG (out)), > subreg_regno_offset (REGNO (SUBREG_REG (out)), >

Re: Reload related segfaults

2011-10-26 Thread David Miller
From: David Miller Date: Wed, 26 Oct 2011 23:07:11 -0400 (EDT) > From: Alan Modra > Date: Thu, 27 Oct 2011 13:29:56 +1030 > >> Some recent patch has exposed a reload bug. I'm seeing > > I think this might be a side effect or Eric's recent changes, > CC:'d. Eric, I'm seeing a similar segmenta

Re: Reload related segfaults

2011-10-26 Thread David Miller
From: Alan Modra Date: Thu, 27 Oct 2011 13:29:56 +1030 > Some recent patch has exposed a reload bug. I'm seeing I think this might be a side effect or Eric's recent changes, CC:'d.

Reload related segfaults

2011-10-26 Thread Alan Modra
Some recent patch has exposed a reload bug. I'm seeing libtool: compile: /home/amodra/build/gcc-curr/./gcc/xgcc -B/home/amodra/build/gcc-curr/./gcc/ -B/home/amodra/gnu/powerpc-linux/bin/ -B/home/amodra/gnu/powerpc-linux/lib/ -isystem /home/amodra/gnu/powerpc-linux/include -isystem /home/amod