This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dead-code elimination can't remove string copy insns?
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>,Michael Matz <matz at suse dot de>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: 13 May 2003 13:24:10 -0400
- Subject: Re: Dead-code elimination can't remove string copy insns?
- Organization: Red Hat Canada
- References: <200305131716.h4DHGFDW012294@speedy.slc.redhat.com>
On Tue, 2003-05-13 at 13:16, law@redhat.com wrote:
> Err, we do zap GOTO_EXPRs to the next statement. See
> remove_useless_stmts_and_vars. It's restricted in that it can't deal
> with removal of a GOTO_EXPR when the label is at a different control
> nesting depth, but they're at the same nesting depth in your example.
>
Then I found a bug :) We didn't remove that goto in this case.
Maybe we apply the goto removal before the BIND_EXPR removal? In this
case, we initially have the goto and the label at different nesting
levels.
Diego.