> I doubt he can help you with this one...  When your problem concerns
> reorg, you should talk to people like Eric Botcazou or Richard
> Sandiford or HP Nillson.  I've added Eric to the CC, to make this a
> happier crowd. :-)

Thank you.  I was about to leave for vacation but I'll stay for this one. :-)

> reorg.c:find_basic_block uses BLOCK_FOR_INSN, which is not valid after
> freeing the CFG. The bug you see occurs now because your backport of
> the other DF/reorg fixes (your patch for PR40105) also introduces a
> call to free_bb_for_insn which clears BLOCK_FOR_INSN.  And since
> find_basic_block skips over NOTE_INSN_BASIC_BLOCK notes (it uses
> {prev,next}_nonnote_insn) and basic block 3 doesn't start with a
> label, find_basic_block never sees the start of basic block 3.

The call to free_bb_for_insn was already there and init_resource_info resets 
BLOCK_FOR_INSN before using them.  I'll look into this too tomorrow.

-- 
Eric Botcazou

Reply via email to