core: Synchronize tree-cst & wide-int caching expectations
authorNathan Sidwell <nathan@acm.org>
Mon, 2 Nov 2020 16:46:16 +0000 (08:46 -0800)
committerNathan Sidwell <nathan@acm.org>
Mon, 2 Nov 2020 16:56:39 +0000 (08:56 -0800)
commita0bc61e0b6da2ff9aca05d7b389a9c114a034052
treea8d4e57246ce2bb6867e4155f7deff982f55b290
parent9a2e765d7773185efa109c12839ab6c8a18a1346
core: Synchronize tree-cst & wide-int caching expectations

I fell over an ICE where wide_int_to_type_1's expectations of pointer
value caching didn't match that of cache_integer_cst's behaviour.  I
don't know why it only exhibited on the modules branch, but it seems
pretty wrong.  This patch matches up the behaviours and adds a comment
about that.

gcc/
* tree.c (cache_integer_cst): Fixup pointer caching to match
wide_int_to_type_1's expectations.  Add comment.
gcc/tree.c