]> gcc.gnu.org Git - gcc.git/commitdiff
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 c40662a22c85976f2c8c88d585de6b7bc95e45bc..7c852915a6f6786dbed2857b15dc8cf9d415827e 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 656cf716b6c1784e1769599c820924f5ffe0891a..feaf3226fac3ad2faeed202b89f6feba168761b0 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;
This page took 0.085879 seconds and 5 git commands to generate.