RFA: Fix PR 22445
Joern RENNECKE
joern.rennecke@st.com
Wed Jul 13 12:02:00 GMT 2005
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
are made of sums, commutativity should also taken into account (that
the order matched in the reported instance was basically luck). That's
what the third (and first) hunk are about. Finally, I added a comment to
cselib_hash_rtx about the properties of the hash that I am fixing / using
in the aforementioned hunks, and removed the mode parameter to
cselib_hash_rtx, because it seved no purpose anymore.
Successfully tested on the sh-elf-4_1-branch with an i686-pc-linux-gnu
bootstrap/regtest and an i686-pc-linux-gnu X sh-elf regtest.
We've also been using this patch without the mode parameter removal
in a 3.4.3 based compiler for a while.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tmp
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050713/c2812432/attachment.ksh>
More information about the Gcc-patches
mailing list