This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix ICE in dse pass (PR36929)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jul 2008 11:11:43 -0400
- Subject: Re: Fix ICE in dse pass (PR36929)
- References: <je4p6cd1ys.fsf@sykes.suse.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sat, Jul 26, 2008 at 06:50:19PM +0200, Andreas Schwab wrote:
> This fixes the ICE in the dse pass on m68k. Regtested on ia64-suse-linux
> (trunk and 4.3 branch). OK for both?
I'd say this is all obvious and could be committed as such.
> @@ -827,12 +824,12 @@ static int
> replace_inc_dec_mem (rtx *r, void *d)
> {
> rtx x = *r;
> - if (GET_CODE (x) == MEM)
> + if (x != NULL_RTX && GET_CODE (x) == MEM)
When you are already changing this line, perhaps you could change it to
if (x != NULL_RTX && MEM_P (x))
?
Jakub