From 9dac2720f30b6a3271d55c67cd79a3d90c11c2ed Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Tue, 9 Dec 2014 02:30:13 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218502 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lto/ChangeLog | 5 +++++ gcc/lto/lto.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index fa96f4825ca5..5f509f01b6ec 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2014-12-08 Trevor Saunders + + * lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types + htab with malloc instead of ggc. + 2014-11-20 Trevor Saunders * lto.c: Replace htab with hash_table. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index a1cd9581bb2a..1ff02f86ff89 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 (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 (4096); -- 2.47.3