This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: rfc: don't delete alternate entry points in cfgcleanup.c
Richard Henderson <rth@redhat.com> writes:
> On Mon, Jan 27, 2003 at 06:17:05PM -0800, Zack Weinberg wrote:
>> We discovered while trying to do stuff with alternate entry points
>> that cfgcleanup.c is prone to delete the special CODE_LABELs.
>
> The correct way to handle this is to have an edge from
> ENTRY_BLOCK to these alternate entry points. Using
> LABEL_PRESERVE_P is incorrect.
Such edges are being created by cfgbuild.c (make_edges) but this does
not appear to do the trick. I think try_optimize_cfg is running too
early.
zw