aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2014-12-09 02:30:13 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2014-12-09 02:30:13 +0000
commit58dddbd21adef585e9f049e83bd58a1a08da074d (patch)
treeb63391e5870d1b6f296c60ed12a39f0c91842edf /gcc/lto
parentf3dba89405a0c4982a83b1143d6ee05e0ee35b3e (diff)
downloadgcc-58dddbd21adef585e9f049e83bd58a1a08da074d.zip
gcc-58dddbd21adef585e9f049e83bd58a1a08da074d.tar.gz
gcc-58dddbd21adef585e9f049e83bd58a1a08da074d.tar.bz2
move gimple_canonical_types htab out of gc memory
lto/ * lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types htab with malloc instead of ggc. From-SVN: r218502
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index fa96f48..5f509f0 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
+
+ * lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types
+ htab with malloc instead of ggc.
+
2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
* lto.c: Replace htab with hash_table.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index a1cd958..1ff02f8 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -2926,8 +2926,8 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
symtab->state = LTO_STREAMING;
canonical_type_hash_cache = new hash_map<const_tree, hashval_t> (251);
- gimple_canonical_types = htab_create_ggc (16381, gimple_canonical_type_hash,
- gimple_canonical_type_eq, 0);
+ gimple_canonical_types = htab_create (16381, gimple_canonical_type_hash,
+ gimple_canonical_type_eq, NULL);
gcc_obstack_init (&tree_scc_hash_obstack);
tree_scc_hash = new hash_table<tree_scc_hasher> (4096);