This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimizer bug, latest version of egcs ( 0 && 0 => 1 )
- To: law at cygnus dot com
- Subject: Re: optimizer bug, latest version of egcs ( 0 && 0 => 1 )
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Wed, 24 Mar 1999 11:10:47 +0000
- Cc: Deborah Wallach <kerr at pa dot dec dot com>, egcs-bugs at cygnus dot com, grunwald at pa dot dec dot com, egcs-patches at egcs dot cygnus dot com
- Cc: richard dot earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: richard dot earnshaw at arm dot com
law@cygnus.com said:
> Thanks for tracking this down! I've got a half-dozen or so bugs on my
> queue which look like they may be the same underlying problem. The
> basic idea behind your fix seems sound to me.
> Here's the patch I'm playing with -- I'll run it through the rest of
> my "gcc losts cast" bugs tomorrow.
Functionally, I think our two patches are identical, since type is only
set at the one place (near the top of the while loop). So I guess it's
down to which is the better of the two places to put this.
I think that after one of the patches is applied, the setting of orig_type
in the NOP_EXPR case is now redundant (orig_type cannot now be null unless
type is also null -- in which case there would be an even bigger problem
:-)