This is the mail archive of the gcc-patches@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: Fix ICE in dse pass (PR36929)


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


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