diff options
author | Jan Hubicka <jh@suse.cz> | 2011-05-03 19:22:58 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-05-03 17:22:58 +0000 |
commit | 1cb1a99f77b15cd8342ffbb0cd89cc0110350c48 (patch) | |
tree | 29d6574c5d8892da7a62fdb54c7eabbacb56e4b1 /gcc/tree-emutls.c | |
parent | b445518d112c0cd481b15df83fbef474cf4058d6 (diff) | |
download | gcc-1cb1a99f77b15cd8342ffbb0cd89cc0110350c48.tar.gz |
cgraph.h (cgraph_node_set_def, [...]): Move out of GTY; replace hash by pointer map.
* cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
replace hash by pointer map.
(cgraph_node_set_element_def, cgraph_node_set_element,
const_cgraph_node_set_element, varpool_node_set_element_def,
varpool_node_set_element, const_varpool_node_set_element): Remove.
(free_cgraph_node_set, free_varpool_node_set): New function.
(cgraph_node_set_size, varpool_node_set_size): Use vector size.
* tree-emutls.c: Free varpool node set.
* ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
Move here from ipa.c; implement using pointer_map
* ipa.c (cgraph_node_set_new, cgraph_node_set_add,
cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
debug_cgraph_node_set, varpool_node_set_new,
varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
dump_varpool_node_set, debug_varpool_node_set):
Move to ipa-uitls.c.
* lto/lto.c (ltrans_partition_def): Remove GTY annotations.
(ltrans_partitions): Move to heap.
(new_partition): Update.
(free_ltrans_partitions): New function.
(lto_wpa_write_files): Use it.
* passes.c (ipa_write_summaries): Update.
From-SVN: r173334
Diffstat (limited to 'gcc/tree-emutls.c')
-rw-r--r-- | gcc/tree-emutls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c index 19f627e16d0..11240477b97 100644 --- a/gcc/tree-emutls.c +++ b/gcc/tree-emutls.c @@ -781,7 +781,7 @@ ipa_lower_emutls (void) VEC_free (varpool_node_ptr, heap, control_vars); VEC_free (tree, heap, access_vars); - tls_vars = NULL; + free_varpool_node_set (tls_vars); return TODO_dump_func | TODO_ggc_collect | TODO_verify_all; } |