Fix bogus CONST_WIDE_INT hash
commit4397eb6811e531e0ba44598edba3fe5047b2b9e9
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2017 09:46:05 +0000 (21 09:46 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Aug 2017 09:46:05 +0000 (21 09:46 +0000)
tree0bd514565219cc54c414c7008b3e66a0254b518b
parent272512a875e9f8ada8ead76b017b169a9c98468d
Fix bogus CONST_WIDE_INT hash

The CONST_WIDE_INT case in const_rtx_hash_1 started the hash
with the precision of the mode, but the mode is always VOIDmode.

2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* varasm.c (const_rtx_hash_1): Don't hash in the mode of a
CONST_WIDE_INT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251218 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/varasm.c