summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-09-11 11:39:27 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-09-11 11:39:27 +0000
commitb8f4e58fbcd3fa19e8bdc65652e58b5c7f8d6f42 (patch)
tree60891e0f2664c6adf4a5260fbe20326ef39ef539 /gcc/lto-streamer.c
parent2cbd94afd37c888ec80ec7ad3c902c9afaae4321 (diff)
gimple.h (gimple_register_type): Remove.
2012-09-11 Richard Guenther <rguenther@suse.de> * gimple.h (gimple_register_type): Remove. (print_gimple_types_stats): Adjust prototype. * lto-streamer.h (print_lto_report): Likewise. * lto-streamer.c (print_lto_report): Adjust. * gimple.c (gimple_types, type_hash_cache, enum gtc_mode, struct type_pair_d, lookup_type_pair, struct sccs, next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s, gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p, gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p, visit, iterative_hash_name, struct type_hash_pair, type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash, gimple_type_eq, gimple_register_type_1, gimple_register_type): Move to lto/lto.c. (print_gimple_types_stats): Adjust. (free_gimple_type_tables): Likewise. lto/ * lto.c (gimple_types, type_hash_cache, enum gtc_mode, struct type_pair_d, lookup_type_pair, struct sccs, next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s, gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p, gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p, visit, iterative_hash_name, struct type_hash_pair, type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash, gimple_type_eq, gimple_register_type_1, gimple_register_type): Move here from gimple.c (read_cgraph_and_symbols): Free hash tables here. (print_lto_report_1): New function wrapping print_lto_report. (do_whole_program_analysis): Call it. (lto_main): Likewise. From-SVN: r191177
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index 66624f9a021..51c6658ec92 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -180,12 +180,10 @@ lto_get_section_name (int section_type, const char *name, struct lto_file_decl_d
/* Show various memory usage statistics related to LTO. */
void
-print_lto_report (void)
+print_lto_report (const char *s)
{
- const char *s = (flag_lto) ? "LTO" : (flag_wpa) ? "WPA" : "LTRANS";
unsigned i;
- fprintf (stderr, "%s statistics\n", s);
fprintf (stderr, "[%s] # of input files: "
HOST_WIDE_INT_PRINT_UNSIGNED "\n", s, lto_stats.num_input_files);
@@ -197,9 +195,6 @@ print_lto_report (void)
HOST_WIDE_INT_PRINT_UNSIGNED "\n", s,
lto_stats.num_function_bodies);
- fprintf (stderr, "[%s] ", s);
- print_gimple_types_stats ();
-
for (i = 0; i < NUM_TREE_CODES; i++)
if (lto_stats.num_trees[i])
fprintf (stderr, "[%s] # of '%s' objects read: "