This patch re-enables -fdump-passes.
authorTeresa Johnson <tejohnson@google.com>
Wed, 29 May 2013 20:51:24 +0000 (20:51 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Wed, 29 May 2013 20:51:24 +0000 (20:51 +0000)
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.

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

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

From-SVN: r199424

gcc/ChangeLog
gcc/passes.c

index c40662a..7c85291 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-29  Teresa Johnson  <tejohnson@google.com>
+
+       * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
+       functions are not yet marked as defined.
+
 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
            Pat Haugen <pthaugen@us.ibm.com>
            Peter Bergner <bergner@vnet.ibm.com>
index 656cf71..feaf322 100644 (file)
@@ -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;