This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: split_block fix
> On Tue, Jul 17, 2001 at 05:16:16PM +0200, Jan Hubicka wrote:
> > this patch fixes split_block to work when asked to split after last insn
> > in basic block. (this is used by find_sub_basic_blocks for code labels at
> > the end of BB).
>
> This makes no sense -- split_block begins with
>
> /* There is no point splitting the block after its end. */
> if (bb->end == insn)
> return 0;
What I was having problem with, if I remember correctly, was an CODE_LABEL
inserted as last insn in the block. sub_basic_block called split_block on
next-to-last insn, but split_block emits BASIC_BLOCK note after the CODE_LABEL,
thus overing after end of the BB.
Honza
>
>
>
> r~