diff options
author | Jan Hubicka <jh@suse.cz> | 2012-05-19 22:36:48 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2012-05-19 20:36:48 +0000 |
commit | 877ab5e91ee2a1b525357397e4efbdd8ec675812 (patch) | |
tree | 3aa47f917669fe469cc6d7484079962de3a39622 /gcc/lto | |
parent | 38e55ac9e0ee61b20b52115171e67d3c3e497a02 (diff) | |
download | gcc-877ab5e91ee2a1b525357397e4efbdd8ec675812.zip gcc-877ab5e91ee2a1b525357397e4efbdd8ec675812.tar.gz gcc-877ab5e91ee2a1b525357397e4efbdd8ec675812.tar.bz2 |
cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
* 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.
From-SVN: r187681
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto/lto.c | 23 |
2 files changed, 5 insertions, 23 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 04d4d03..06774d8 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 00f623f..b94c8a7 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; |