This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dead-code elimination can't remove string copy insns?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]