Tweaks to RTL locus preservation code (2)

H.J. Lu hjl.tools@gmail.com
Thu Nov 25 08:57:00 GMT 2010


On Sun, Oct 24, 2010 at 12:37 AM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Another couple of small tweaks to the code introduced by Jakub to preserve
> location info at -O0, this time to fixup_reorder_chain.  The first change
> makes it so that the code doesn't try to split non-fallthru edges to the exit
> block (this can happen with unusual combinations of options) and the second
> one avoids creating several artificial basic blocks because of the same locus
> on different edges.
>
> Tested (GCC + GDB) on x86_64-suse-linux, applied on the mainline.
>
>
> 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
>
>        * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
>        least one insn with a locus corresponding to an edge's goto_locus,
>        disregard non-fallthru edges to the exit block and merge the blocks
>        created for the same goto_locus.
>
>

This caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46649


-- 
H.J.



More information about the Gcc-patches mailing list