From deb3dae698b52152c56ec9e271e015f7547d2468 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 24 Nov 2015 20:04:04 +0100 Subject: tree.c (free_node): New function. * tree.c (free_node): New function. (type_hash_canon): Use it. * tree.h (free_node): Declare. * lto.c (unify_scc): Use free_node. From-SVN: r230833 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/lto') diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 4105337..9d6b126 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2015-11-24 Jan Hubicka + + * lto.c (unify_scc): Use free_node. + 2015-11-21 Jan Hubicka * lto.c (iterative_hash_canonical_type): Always recurse for pointers. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 2661491..c4c5158 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1623,13 +1623,9 @@ unify_scc (struct data_in *data_in, unsigned from, data_in->location_cache.revert_location_cache (); for (unsigned i = 0; i < len; ++i) { - enum tree_code code; if (TYPE_P (scc->entries[i])) num_merged_types++; - code = TREE_CODE (scc->entries[i]); - if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR)) - vec_free (CONSTRUCTOR_ELTS (scc->entries[i])); - ggc_free (scc->entries[i]); + free_node (scc->entries[i]); } break; -- cgit v1.1