This patch re-enables -fdump-passes. It had stopped working because
dump_passes was changed to use the FOR_EACH_DEFINED_FUNCTION iterator,
however, functions are not marked as defined until after dump_passes
is called, in cgraph_analyze_functions. Fixed by iterating over all
functions.

Bootstrapped and tested on x86-64-unknown-linux-gnu. Ok for trunk?

Thanks,
Teresa

2013-05-29  Teresa Johnson  <tejohn...@google.com>

* passes.c (dump_passes): Use FOR_EACH_FUNCTION since
        functions are not yet marked as defined.

Index: passes.c
===================================================================
--- passes.c (revision 199199)
+++ passes.c (working copy)
@@ -718,7 +718,7 @@ dump_passes (void)

   create_pass_tab();

-  FOR_EACH_DEFINED_FUNCTION (n)
+  FOR_EACH_FUNCTION (n)
     if (DECL_STRUCT_FUNCTION (n->symbol.decl))
       {
  node = n;


--
Teresa Johnson | Software Engineer | tejohn...@google.com | 408-460-2413

Reply via email to