diff options
author | Martin Jambor <mjambor@suse.cz> | 2011-04-30 01:42:15 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2011-04-30 01:42:15 +0200 |
commit | af8bca3c6405b6f83ee6a1bc06a0b0e003390821 (patch) | |
tree | 223bf74a250abe0577f81e8a0db2cdb8f7243fd6 /gcc/lto | |
parent | 48e5d11979af0dd03c54623faffddc5f0c3c1741 (diff) | |
download | gcc-af8bca3c6405b6f83ee6a1bc06a0b0e003390821.zip gcc-af8bca3c6405b6f83ee6a1bc06a0b0e003390821.tar.gz gcc-af8bca3c6405b6f83ee6a1bc06a0b0e003390821.tar.bz2 |
cgraph.h (cgraph_postorder): Remove declaration.
2011-04-29 Martin Jambor <mjambor@suse.cz>
* 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
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/lto/lto.c | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index be3a873..efcd633 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2011-04-29 Martin Jambor <mjambor@suse.cz> + + * 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. + 2011-04-29 Michael Matz <matz@suse.de> * lto.c (toplevel): Include tree-flow.h. diff --git a/gcc/lto/Make-lang.in b/gcc/lto/Make-lang.in index 6b6930f..d5a15f8 100644 --- a/gcc/lto/Make-lang.in +++ b/gcc/lto/Make-lang.in @@ -86,7 +86,7 @@ lto/lto.o: lto/lto.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \ langhooks.h $(VEC_H) $(BITMAP_H) pointer-set.h $(IPA_PROP_H) \ $(COMMON_H) debug.h $(TIMEVAR_H) $(GIMPLE_H) $(LTO_H) $(LTO_TREE_H) \ $(LTO_TAGS_H) $(LTO_STREAMER_H) $(SPLAY_TREE_H) gt-lto-lto.h $(PARAMS_H) \ - ipa-inline.h + ipa-inline.h $(IPA_UTILS_H) lto/lto-object.o: lto/lto-object.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(DIAGNOSTIC_CORE_H) $(LTO_H) $(TM_H) $(LTO_STREAMER_H) \ ../include/simple-object.h diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index d8e69c5..a8027a4 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -46,6 +46,7 @@ along with GCC; see the file COPYING3. If not see #include "splay-tree.h" #include "params.h" #include "ipa-inline.h" +#include "ipa-utils.h" static GTY(()) tree first_personality_decl; @@ -1458,7 +1459,7 @@ lto_balanced_map (void) size. Note that since nodes that are not partitioned might be put into multiple partitions, this is just an estimate of real size. This is why we keep partition_size updated after every partition is finalized. */ - postorder_len = cgraph_postorder (postorder); + postorder_len = ipa_reverse_postorder (postorder); for (i = 0; i < postorder_len; i++) { node = postorder[i]; |