diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-09 17:29:21 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-09 17:29:21 +0000 |
commit | 724462b06920593c5899703a0547f6052ec9d973 (patch) | |
tree | 267374ed574354532c002262d01eab0c5d4195fb /gcc/lto-streamer.h | |
parent | bdbf421cd2aa91716fab7fa7b6a312ab5a576212 (diff) | |
download | gcc-724462b06920593c5899703a0547f6052ec9d973.tar.gz |
* passes.c (ipa_write_summaries_1): Set state;
do not call compute_ltrans_boundary.
(ipa_write_optimization_summaries): Likewise.
(ipa_write_summaries): compute_ltrans_boundary here.
* lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
(compute_ltrans_boundary): Update prototype.
* lto.c (lto_wpa_write_files): Do not delete partition encoder;
it is deleted after streaming.
* lto-partition.c (partition_symbol_p): New function.
(promote_var, promote_fn): Remove.
(promote_symbol): New function.
(lto_promote_cross_file_statics): First compute boundaries; rewrite
to lookup the actual boundaries instead of computing them ad-hoc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index 595b538e5ce..cab5906e026 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -441,7 +441,7 @@ DEF_VEC_ALLOC_O(lto_encoder_entry, heap); /* Encoder data structure used to stream callgraph nodes. */ struct lto_symtab_encoder_d { - VEC(lto_encoder_entry,gc) *nodes; + VEC(lto_encoder_entry,heap) *nodes; pointer_map_t *map; }; @@ -856,8 +856,7 @@ bool referenced_from_this_partition_p (struct ipa_ref_list *, lto_symtab_encoder_t); bool reachable_from_this_partition_p (struct cgraph_node *, lto_symtab_encoder_t); -void compute_ltrans_boundary (struct lto_out_decl_state *state, - lto_symtab_encoder_t encoder); +lto_symtab_encoder_t compute_ltrans_boundary (lto_symtab_encoder_t encoder); /* In lto-symtab.c. */ |