From 1388a0e34af7dcbe46feb50e2c74d2cf1026fcfa Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 29 May 2013 20:51:24 +0000 Subject: [PATCH] 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 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since functions are not yet marked as defined. From-SVN: r199424 --- gcc/ChangeLog | 5 +++++ gcc/passes.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * passes.c (dump_passes): Use FOR_EACH_FUNCTION since + functions are not yet marked as defined. + 2013-05-29 Michael Meissner Pat Haugen Peter Bergner 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; -- 2.7.4