On Fri, Sep 02, 2005 at 06:28:08PM +0930, Alan Modra wrote:
> I propose using this instead:
>
> for (fn_begin = get_insns (); ; fn_begin = NEXT_INSN (fn_begin))
> if (NOTE_P (fn_begin)
> && NOTE_LINE_NUMBER (fn_begin) == NOTE_INSN_FUNCTION_BEG)
> break;
>
> insert_insn_on_edge
Jan, the following change of yours is responsible for PR21460. Can you
remember why you wanted to look for NOTE_INSN_BASIC_BLOCK?
I propose using this instead:
for (fn_begin = get_insns (); ; fn_begin = NEXT_INSN (fn_begin))
if (NOTE_P (fn_begin)
&& NOTE_LINE_NUMBER (fn_begin) == N