]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove class cache_map and use ggc hash_maps instead (PR c++/70452)
authorPatrick Palka <ppalka@gcc.gnu.org>
Tue, 5 Apr 2016 01:20:00 +0000 (01:20 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Tue, 5 Apr 2016 01:20:00 +0000 (01:20 +0000)
commit7a7ac32ac65127c17183af776d771b8f8b072cf9
tree5d77f7ebc216c41b2915991ee6a8accb5605b126
parentcefb34aaf0bfe75719989877320ef071284ea9db
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.

From-SVN: r234732
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h