summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-10-29 09:44:52 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-10-29 08:44:52 +0000
commit3518424d4bf6a9654c7fea7f046ed839e888b1d6 (patch)
tree4d388155baecc27cb214fe9e5777075963377fe7 /gcc/cgraphunit.c
parent58cc99af1d829d545299c9958f0666b837914cee (diff)
Print header in dump_memory_report.
2019-10-29 Martin Liska <mliska@suse.cz> * cgraphunit.c (symbol_table::compile): Pass title as dump_memory_report argument. * toplev.c (dump_memory_report): New argument. (finalize): Pass new argument. * toplev.h (dump_memory_report): Add argument. 2019-10-29 Martin Liska <mliska@suse.cz> * lto.c (do_whole_program_analysis): Pass title as dump_memory_report argument. From-SVN: r277559
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 9873b9b7aac..6ec24432351 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2602,10 +2602,7 @@ symbol_table::compile (void)
timevar_push (TV_CGRAPHOPT);
if (pre_ipa_mem_report)
- {
- fprintf (stderr, "Memory consumption before IPA\n");
- dump_memory_report ();
- }
+ dump_memory_report ("Memory consumption before IPA");
if (!quiet_flag)
fprintf (stderr, "Performing interprocedural optimizations\n");
state = IPA;
@@ -2637,10 +2634,7 @@ symbol_table::compile (void)
symtab->dump (dump_file);
}
if (post_ipa_mem_report)
- {
- fprintf (stderr, "Memory consumption after IPA\n");
- dump_memory_report ();
- }
+ dump_memory_report ("Memory consumption after IPA");
timevar_pop (TV_CGRAPHOPT);
/* Output everything. */