move gimple_canonical_types htab out of gc memory
authorTrevor Saunders <tsaunders@mozilla.com>
Tue, 9 Dec 2014 02:30:13 +0000 (02:30 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Tue, 9 Dec 2014 02:30:13 +0000 (02:30 +0000)
lto/

* lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types
htab with malloc instead of ggc.

From-SVN: r218502

gcc/lto/ChangeLog
gcc/lto/lto.c

index fa96f4825ca5f6abcc7ab79ecae4c8fc0252e21e..5f509f01b6ec14639238739a85ca8f7f8995db92 100644 (file)
@@ -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.
index a1cd9581bb2a263ad7b8efbd9b4dd4c23a62d23d..1ff02f86ff89fcd8369aef55b4c276dee568b2c6 100644 (file)
@@ -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);