diff options
author | Teresa Johnson <tejohnson@google.com> | 2013-05-29 20:51:24 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2013-05-29 20:51:24 +0000 |
commit | 1388a0e34af7dcbe46feb50e2c74d2cf1026fcfa (patch) | |
tree | 450199094e59e3b039c251d35814dbb2aa5021c8 /gcc | |
parent | a5965b52876dded2c1bd7d743ad4b1f47708d41f (diff) | |
download | gcc-1388a0e34af7dcbe46feb50e2c74d2cf1026fcfa.zip gcc-1388a0e34af7dcbe46feb50e2c74d2cf1026fcfa.tar.gz gcc-1388a0e34af7dcbe46feb50e2c74d2cf1026fcfa.tar.bz2 |
This patch re-enables -fdump-passes.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/passes.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c40662a..7c85291 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/passes.c b/gcc/passes.c index 656cf71..feaf322 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -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; |