From 5c4f225fcfbad841f98fe6b7813bf07de8817cea Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 10 May 2010 18:13:52 +0200 Subject: passes.c (ipa_write_summaries_1, [...]): Allocate encoders. * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries): Allocate encoders. * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here. * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool. (lto_streamer_cache_create): Init alloc pool. (lto_streamer_cache_delete): Free alloc pool. * lto-streamer.h: Include alloc pool. (lto_streamer_cache_d): Use alloc pool. * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states. From-SVN: r159230 --- gcc/lto-streamer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/lto-streamer.h') diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 4f3d60d8993..65e2b3f4c75 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "cgraph.h" #include "vec.h" #include "vecprim.h" +#include "alloc-pool.h" /* Define when debugging the LTO streamer. This causes the writer to output the numeric value for the memory address of the tree node @@ -346,6 +347,9 @@ struct lto_streamer_cache_d /* The mapping between tree nodes and slots into the nodes array. */ htab_t node_map; + /* Node map to store entries into. */ + alloc_pool node_map_entries; + /* Next available slot in the nodes and offsets arrays. */ unsigned next_slot; -- cgit v1.2.1