This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
IPA passes and -Q
- From: Jan Hubicka <jh at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Jan 2007 00:24:15 +0100
- Subject: IPA passes and -Q
Hi,
this patch makes passmanager to print name of current IPA pass. It makes IPA
compilation bit less boring for large units and helps me to more easilly
identify where the time and memory is going.
Bootstrapped/regtested i686-linux
OK?
Honza
Index: passes.c
===================================================================
*** passes.c (revision 120621)
--- passes.c (working copy)
*************** execute_ipa_pass_list (struct tree_opt_p
*** 1003,1008 ****
--- 1014,1024 ----
{
gcc_assert (!current_function_decl);
gcc_assert (!cfun);
+ if (!quiet_flag)
+ {
+ fprintf (stderr, " <%s>", pass->name ? pass->name : "");
+ fflush (stderr);
+ }
if (execute_one_pass (pass) && pass->sub)
do_per_function ((void (*)(void *))execute_pass_list, pass->sub);
if (!current_function_decl)