summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-10 18:13:52 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-10 16:13:52 +0000
commit5c4f225fcfbad841f98fe6b7813bf07de8817cea (patch)
treeaf4fa061a1b315f2199661fa8e32fbeec97d0a94 /gcc/lto-streamer.h
parentde61f46712258bf735c5173e92655569bc732f13 (diff)
downloadgcc-5c4f225fcfbad841f98fe6b7813bf07de8817cea.tar.gz
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
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r--gcc/lto-streamer.h4
1 files changed, 4 insertions, 0 deletions
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;