This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]