Re: [patch] PR55158 - segfault in sched-rgn.c

2012-12-07 Thread Bernd Schmidt
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 de

Re: [patch] PR55158 - segfault in sched-rgn.c

2012-12-06 Thread Maxim Kuvyrkov
On 7/12/2012, at 1:31 AM, 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

[patch] PR55158 - segfault in sched-rgn.c

2012-12-06 Thread Steven Bosscher
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 a