Remove class cache_map and use ggc hash_maps instead (PR c++/70452)
commit2a655a4c88c07c370f9b13de859598892552143b
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Apr 2016 01:20:00 +0000 (5 01:20 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Apr 2016 01:20:00 +0000 (5 01:20 +0000)
tree5d77f7ebc216c41b2915991ee6a8accb5605b126
parent63f001c6c2a1170c8f8ad26a597edec5c182f811
Remove class cache_map and use ggc hash_maps instead (PR c++/70452)

gcc/cp/ChangeLog:

PR c++/70452
* cp-tree.h (class cache_map): Remove.
* constexpr.c (cv_cache): Change type to
GTY((deletable)) hash_map<tree, tree> *.
(maybe_constant_value): Adjust following the change to cv_cache.
(clear_cv_cache): New static function.
(clear_cv_and_fold_caches): Use it.
* cp-gimplify.c (fold_cache): Change type to
GTY((deletable)) hash_map<tree, tree> *.
(clear_fold_cache): Adjust following the change to fold_cache.
(cp_fold): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234732 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h