This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix PR 22445
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Jul 2005 13:14:24 +0100
- Subject: Re: RFA: Fix PR 22445
- References: <42D502C6.2050805@st.com>
Joern Rennecke wrote:
The actual failure decribed in the PR is fixed by merely not using mode
in the hashing of CONST_INTs, i.e. that is the one-line change in the
last
hunk of the attached patch. However, when you compare addresses that
Oops, that's the fifth hunk, actually. I.e. this one:
*************** cselib_hash_rtx (rtx x, enum machine_mod
*** 572,578 ****
return e->value;
case CONST_INT:
! hash += ((unsigned) CONST_INT << 7) + (unsigned) mode + INTVAL (x);
return hash ? hash : (unsigned int) CONST_INT;
case CONST_DOUBLE:
--- 592,598 ----
return e->value;
case CONST_INT:
! hash += ((unsigned) CONST_INT << 7) + INTVAL (x);
return hash ? hash : (unsigned int) CONST_INT;
case CONST_DOUBLE:
And the ChangeLog will get a "PR rtl-optimization/22445" marker.