aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-05-19 20:36:48 +0000
committerJan Hubicka <jh@suse.cz>2012-05-19 20:36:48 +0000
commit18e162432fb5e01f7116c4b75495a12510192b54 (patch)
tree3aa47f917669fe469cc6d7484079962de3a39622 /gcc/lto
parent8d931eb5bd3adcbc6f3d7a503735af600d59f3ef (diff)
* cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
(cgraph_process_new_functions): Process also aliases. * lto-streamer-out.c (struct sets): Remove. (trivally_defined_alias): Remove. (output_alias_pair_p): Remove. (output_unreferenced_globals): Remove. (produce_symtab); Do not handle alias pairs. (produce_asm_for_decls): Likewise. * lto-streamer-in.c (input_alias_pairs): Remove. (lto_read_body): Do not input alias pairs. (lto_input_constructors_and_inits): Remove. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187681 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto.c23
2 files changed, 5 insertions, 23 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 04d4d03ee5b..06774d833b0 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-18 Jan Hubicka <jh@suse.cz>
+
+ * lto.c (lto_materialize_constructors_and_inits): Remove.
+ (read_cgraph_and_symbols): Remove handling of alias pairs.
+
2012-05-17 Jan Hubicka <jh@suse.cz>
* lto-partition.c (add_references_to_partition): Handle external vars.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 00f623f6a0d..b94c8a7f869 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -156,20 +156,6 @@ lto_splay_tree_new (void)
NULL);
}
-/* Read the constructors and inits. */
-
-static void
-lto_materialize_constructors_and_inits (struct lto_file_decl_data * file_data)
-{
- size_t len;
- const char *data = lto_get_section_data (file_data,
- LTO_section_static_initializer,
- NULL, &len);
- lto_input_constructors_and_inits (file_data, data);
- lto_free_section_data (file_data, LTO_section_static_initializer, NULL,
- data, len);
-}
-
/* Return true when NODE has a clone that is analyzed (i.e. we need
to load its body even if the node itself is not needed). */
@@ -1883,15 +1869,6 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
timevar_push (TV_IPA_LTO_DECL_INIT_IO);
- /* FIXME lto. This loop needs to be changed to use the pass manager to
- call the ipa passes directly. */
- if (!seen_error ())
- for (i = 0; i < last_file_ix; i++)
- {
- struct lto_file_decl_data *file_data = all_file_decl_data [i];
- lto_materialize_constructors_and_inits (file_data);
- }
-
/* Indicate that the cgraph is built and ready. */
cgraph_function_flags_ready = true;