aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-11-24 20:04:04 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-11-24 19:04:04 +0000
commitdeb3dae698b52152c56ec9e271e015f7547d2468 (patch)
treecbddd6bafd673199d9301ff3e023bd7f2712bbb8 /gcc/lto
parentd7dc0f8037a3999144177147fb772ab26c2aad6a (diff)
downloadgcc-deb3dae698b52152c56ec9e271e015f7547d2468.zip
gcc-deb3dae698b52152c56ec9e271e015f7547d2468.tar.gz
gcc-deb3dae698b52152c56ec9e271e015f7547d2468.tar.bz2
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
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c6
2 files changed, 5 insertions, 5 deletions
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 <hubicka@ucw.cz>
+
+ * lto.c (unify_scc): Use free_node.
+
2015-11-21 Jan Hubicka <hubicka@ucw.cz>
* 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;