destroy values as well as keys when removing them from hash maps
commit768546501182c362b94df75c7c317d13aef6c809
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2015 11:46:10 +0000 (24 11:46 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2015 11:46:10 +0000 (24 11:46 +0000)
tree58070dd13c6248487e3ae1a088186d0901249d7f
parent177a1f393daf0214066c4e1ce21b330d5946527a
destroy values as well as keys when removing them from hash maps

gcc/ChangeLog:

2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* hash-map-traits.h (simple_hashmap_traits ::remove): call
destructors on values that are being removed.
* mem-stats.h (hash_map): Pass type of values to
simple_hashmap_traits.
* tree-sra.c (sra_deinitialize): Remove work around for hash
maps not destructing values.
* genmatch.c (sinfo_hashmap_traits): Adjust.
* tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230801 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genmatch.c
gcc/hash-map-traits.h
gcc/mem-stats.h
gcc/tree-sra.c
gcc/tree-ssa-uncprop.c