diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-09-02 22:46:00 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-09-02 22:46:00 +0000 |
commit | b086d5308de0d25444243f482f2f3d1dfd3a9a62 (patch) | |
tree | cb4aa8d407cf40f28ef0fcd771f1109d53f44f3c /gcc/function.h | |
parent | 70f0f8b2b1c9bf53b9158e4264bc1e93b963c31e (diff) | |
download | gcc-b086d5308de0d25444243f482f2f3d1dfd3a9a62.zip gcc-b086d5308de0d25444243f482f2f3d1dfd3a9a62.tar.gz gcc-b086d5308de0d25444243f482f2f3d1dfd3a9a62.tar.bz2 |
support ggc hash_map and hash_set
gcc/ChangeLog:
* alloc-pool.c: Include coretypes.h.
* cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
hash_set instead of htab.
* ggc-page.c (in_gc): New variable.
(ggc_free): Do nothing if a collection is taking place.
(ggc_collect): Set in_gc appropriately.
* ggc.h (gt_ggc_mx(const char *)): New function.
(gt_pch_nx(const char *)): Likewise.
(gt_ggc_mx(int)): Likewise.
(gt_pch_nx(int)): Likewise.
* hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
(hash_map::hash_entry::pch_nx): Likewise.
(hash_map::hash_entry::pch_nx_helper): Likewise.
(hash_map::hash_map): Adjust.
(hash_map::create_ggc): New function.
(gt_ggc_mx): Likewise.
(gt_pch_nx): Likewise.
* hash-set.h (default_hashset_traits::ggc_mx): Likewise.
(default_hashset_traits::pch_nx): Likewise.
(hash_set::hash_entry::ggc_mx): Likewise.
(hash_set::hash_entry::pch_nx): Likewise.
(hash_set::hash_entry::pch_nx_helper): Likewise.
(hash_set::hash_set): Adjust.
(hash_set::create_ggc): New function.
(hash_set::elements): Likewise.
(gt_ggc_mx): Likewise.
(gt_pch_nx): Likewise.
* hash-table.h (hash_table::hash_table): Adjust.
(hash_table::m_ggc): New member.
(hash_table::~hash_table): Adjust.
(hash_table::expand): Likewise.
(hash_table::empty): Likewise.
(gt_ggc_mx): New function.
(hashtab_entry_note_pointers): Likewise.
(gt_pch_nx): Likewise.
From-SVN: r214834
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.h b/gcc/function.h index 071f5dd..e71210d 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #define GCC_FUNCTION_H #include "hashtab.h" +#include "hash-set.h" #include "vec.h" #include "machmode.h" #include "tm.h" /* For CUMULATIVE_ARGS. */ @@ -564,7 +565,7 @@ struct GTY(()) function { struct language_function * language; /* Used types hash table. */ - htab_t GTY ((param_is (union tree_node))) used_types_hash; + hash_set<tree> *GTY (()) used_types_hash; /* Dwarf2 Frame Description Entry, containing the Call Frame Instructions used for unwinding. Only set when either dwarf2 unwinding or dwarf2 |