Fix bogus CONST_WIDE_INT hash
authorRichard Sandiford <richard.sandiford@linaro.org>
Mon, 21 Aug 2017 09:46:05 +0000 (09:46 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 21 Aug 2017 09:46:05 +0000 (09:46 +0000)
commit38fbc003332134ef0a04d319fb71b297f67c6988
tree0bd514565219cc54c414c7008b3e66a0254b518b
parent8322b607d60d721542792af78b84e9069ea1a662
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.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251218
gcc/ChangeLog
gcc/varasm.c