This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] PR55158 - segfault in sched-rgn.c
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Eric Botcazou <ebotcazou at adacore dot com>
- Date: Fri, 7 Dec 2012 15:22:30 +0100
- Subject: Re: [patch] PR55158 - segfault in sched-rgn.c
- References: <CABu31nPCbv69iO2HRJkM5BBRaLhGNAYCOvn09ReZwTJaub-qpA@mail.gmail.com>
On 12/06/2012 01:31 PM, Steven Bosscher wrote:
> Hello,
>
> The problem in this PR is that new basic blocks can be created if the
> scheduler moves speculative insns and adds recovery code, but the
> bb_state* arrays are allocated only at the start of scheduling a
> region and are not set up to deal with changing last_basic_block.
>
> Fixed by resizing the arrays if necessary. This fixes most of the
> testsuite failures on ia64:
Looks OK to me. Thanks,
Bernd