Add wide_int version of inchash::hash::add_wide_int
authorRichard Sandiford <richard.sandiford@linaro.org>
Sun, 22 Oct 2017 21:04:02 +0000 (21:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 22 Oct 2017 21:04:02 +0000 (21:04 +0000)
commitcae115d6d4552a29efb4ea94363d63bde985b4d8
tree971f8140db3ad5996450c01a83b79bf0fe08af00
parent449e9a33887046acec46f373f96900fc07735355
Add wide_int version of inchash::hash::add_wide_int

This patch adds an inchash hasher for wide_int-based types.
It means that hash_tree no longer hashes TREE_INT_CST_EXT_NUNITS,
but that was redundant with hashing the type.

2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* inchash.h (inchash::hash::add_wide_int): New function.
* lto-streamer-out.c (hash_tree): Use it.

From-SVN: r253988
gcc/ChangeLog
gcc/inchash.h
gcc/lto-streamer-out.c