From af8bca3c6405b6f83ee6a1bc06a0b0e003390821 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Sat, 30 Apr 2011 01:42:15 +0200 Subject: cgraph.h (cgraph_postorder): Remove declaration. 2011-04-29 Martin Jambor * cgraph.h (cgraph_postorder): Remove declaration. * ipa-utils.h (ipa_free_postorder_info): Declare. (ipa_reverse_postorder): Likewise. * cgraphunit.c: Include ipa-utils.h. (cgraph_expand_all_functions): Update call to ipa_reverse_postorder. * ipa-inline.c: Include ipa-utils.h. (ipa_inline): Update call to ipa_reverse_postorder. * ipa-pure-const.c (propagate_pure_const): Update call to ipa_reduced_postorder and ipa_print_order. Call ipa_free_postorder_info to clean up. (propagate_nothrow): Likewise. * ipa-reference.c (propagate): Removed a useless call to ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder and ipa_print_order. Call ipa_free_postorder_info to clean up. * ipa.c: Include ipa-utils.h. (ipa_profile): Update call to ipa_reverse_postorder. (cgraph_postorder): Moved to... * ipa-utils.c (ipa_reverse_postorder): ...here and renamed. (ipa_utils_print_order): Renamed to ipa_print_order. (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated comments. (ipa_free_postorder_info): New function. * passes.c: Include ipa-utils.h. (do_per_function_toporder): Update call to ipa_reverse_postorder. (ipa_write_summaries): Likewise. * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies. (cgraphunit.o): Likewise. (ipa.o): Likewise. (ipa-inline.o): Likewise. lto/ * lto.c: Include ipa-utils.h. (lto_balanced_map): Update call to ipa_reverse_postorder. * Make-lang.in (lto/lto.o): Add IPA_UTILS_H to dependencies. From-SVN: r173197 --- gcc/ipa-inline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index d4052df..47b26f4 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -114,6 +114,7 @@ along with GCC; see the file COPYING3. If not see #include "except.h" #include "target.h" #include "ipa-inline.h" +#include "ipa-utils.h" /* Statistics we collect about inlining algorithm. */ static int overall_size; @@ -1457,7 +1458,7 @@ ipa_inline (void) if (dump_file) dump_inline_summaries (dump_file); - nnodes = cgraph_postorder (order); + nnodes = ipa_reverse_postorder (order); for (node = cgraph_nodes; node; node = node->next) node->aux = 0; -- cgit v1.1