aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-into-ssa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-08-21 11:48:42 +0000
committerRichard Guenther <rguenther@suse.de>2012-08-21 11:48:42 +0000
commit0b60732ea38c8e14b30acb634911f695c32215c1 (patch)
tree1a86ea46dfeb996cb6319c790537e709944defa5 /gcc/tree-into-ssa.c
parent738ef9b761a1054fa4389f3d178b862873955d5a (diff)
2012-08-21 Richard Guenther <rguenther@suse.de>
* tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free the affine expansion cache. * tree-ssa-dom.c (free_expr_hash_elt_contents): New function, split out from ... (free_expr_hash_elt): ... this one. (record_cond): Properly free a not needed hashtable element. (lookup_avail_expr): Likewise. * tree-into-ssa.c (init_ssa_renamer): Specify a free function for the var_infos hashtable. (update_ssa): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@190560 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r--gcc/tree-into-ssa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c
index 8365ee1074a..d1fb1924192 100644
--- a/gcc/tree-into-ssa.c
+++ b/gcc/tree-into-ssa.c
@@ -2291,7 +2291,7 @@ init_ssa_renamer (void)
/* Allocate memory for the DEF_BLOCKS hash table. */
gcc_assert (var_infos == NULL);
var_infos = htab_create (VEC_length (tree, cfun->local_decls),
- var_info_hash, var_info_eq, NULL);
+ var_info_hash, var_info_eq, free);
bitmap_obstack_initialize (&update_ssa_obstack);
}
@@ -3170,7 +3170,7 @@ update_ssa (unsigned update_flags)
{
/* If we rename bare symbols initialize the mapping to
auxiliar info we need to keep track of. */
- var_infos = htab_create (47, var_info_hash, var_info_eq, NULL);
+ var_infos = htab_create (47, var_info_hash, var_info_eq, free);
/* If we have to rename some symbols from scratch, we need to
start the process at the root of the CFG. FIXME, it should