diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-29 22:44:18 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-29 22:44:18 +0000 |
commit | 5730594108b0d9f02924024c2bf86d8649d6e6ff (patch) | |
tree | 541cdf07e080cc1b6304972a831de1ff8675d8dd /gcc/lto-section-in.c | |
parent | dedfd6698f05d131adf09d2e5dcd443b8f200666 (diff) | |
download | gcc-5730594108b0d9f02924024c2bf86d8649d6e6ff.tar.gz |
* gengtype.c (open_base_files): Add lto-streamer.h
* cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
(pass_ipa_cp): GGC collect.
* toplev. (compile_file): Do not output symbols.
* ipa-inline.c (pass_ipa_inline): Add ggc collect.
* timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
* lto-section-in.c: Include ggc.h
(lto_new_in_decl_state): Alloc in GGC.
(lto_delete_in_decl_state): Likewise.
* ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program): Collect.
* lto/lto.c (lto_read_in_decl_state): Use GGC.
(lto_wpa_write_files): Announce what we are writting.
(all_file_decl_data): New.
(read_cgraph_and_symbols): Use GGC; correct timevars.
(do_whole_program_analysis): Collect.
* lto/Make-lang.in (lto.o): Fix dependency.
* Makefile.in (GTFILES): Add lto-streamer.h.
* varpool.c (varpool_analyze_pending_decls): Use TV_VARPOOL.
(varpool_assemble_pending_decls): Use VAROUT.
* lto-streamer.h (lto_tree_ref_table): Annotate.
(lto_in_decl_state): Annotate.
(lto_file_decl_data): Annotate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r-- | gcc/lto-section-in.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index 16fd0867805..aea1c1decd4 100644 --- a/gcc/lto-section-in.c +++ b/gcc/lto-section-in.c @@ -43,6 +43,7 @@ along with GCC; see the file COPYING3. If not see #include "output.h" #include "lto-streamer.h" #include "lto-compress.h" +#include "ggc.h" /* Section names. These must correspond to the values of enum lto_section_type. */ @@ -433,7 +434,7 @@ lto_new_in_decl_state (void) { struct lto_in_decl_state *state; - state = ((struct lto_in_decl_state *) xmalloc (sizeof (*state))); + state = ((struct lto_in_decl_state *) ggc_alloc (sizeof (*state))); memset (state, 0, sizeof (*state)); return state; } @@ -447,8 +448,8 @@ lto_delete_in_decl_state (struct lto_in_decl_state *state) for (i = 0; i < LTO_N_DECL_STREAMS; i++) if (state->streams[i].trees) - free (state->streams[i].trees); - free (state); + ggc_free (state->streams[i].trees); + ggc_free (state); } /* Hashtable helpers. lto_in_decl_states are hash by their function decls. */ |