From 2da8af1fee6b4356bbffcfd37e2f46da92d44441 Mon Sep 17 00:00:00 2001 From: hubicka Date: Sun, 30 May 2010 10:16:54 +0000 Subject: * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2, ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initilalize dump files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160047 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/passes.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index ebbfd97cece..64555fdc826 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1670,8 +1670,12 @@ ipa_write_summaries_2 (struct opt_pass *pass, cgraph_node_set set, if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->write_summary (set,vset); + pass_fini_dump_file (pass); + /* If a timevar is present, start it. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1784,8 +1788,12 @@ ipa_write_optimization_summaries_1 (struct opt_pass *pass, cgraph_node_set set, if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->write_optimization_summary (set, vset); + pass_fini_dump_file (pass); + /* If a timevar is present, start it. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1840,8 +1848,12 @@ ipa_read_summaries_1 (struct opt_pass *pass) if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->read_summary (); + pass_fini_dump_file (pass); + /* Stop timevar. */ if (pass->tv_id) timevar_pop (pass->tv_id); @@ -1886,8 +1898,12 @@ ipa_read_optimization_summaries_1 (struct opt_pass *pass) if (pass->tv_id) timevar_push (pass->tv_id); + pass_init_dump_file (pass); + ipa_pass->read_optimization_summary (); + pass_fini_dump_file (pass); + /* Stop timevar. */ if (pass->tv_id) timevar_pop (pass->tv_id); -- cgit v1.2.1