diff options
author | Jan Hubicka <jh@suse.cz> | 2008-09-14 00:32:57 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-09-13 22:32:57 +0000 |
commit | a63f29427ba31d65547ee0b78e5ddf0dee1cd876 (patch) | |
tree | 8b3e4d65bc6ae237194b00c2ae61bcc3c8658bd5 /gcc | |
parent | 71ba42faebfafc76c0650774a66df6efa07683bb (diff) | |
download | gcc-a63f29427ba31d65547ee0b78e5ddf0dee1cd876.zip gcc-a63f29427ba31d65547ee0b78e5ddf0dee1cd876.tar.gz gcc-a63f29427ba31d65547ee0b78e5ddf0dee1cd876.tar.bz2 |
cgraph.c: Include value-prof.h
* cgraph.c: Include value-prof.h
* Makefile.in (cgraph.o): Add value-prof.h dependency.
From-SVN: r140350
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/Makefile.in | 2 | ||||
-rw-r--r-- | gcc/cgraph.c | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3020ade..7f6649e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-09-13 Jan Hubicka <jh@suse.cz> + * cgraph.c: Include value-prof.h + * Makefile.in (cgraph.o): Add value-prof.h dependency. + +2008-09-13 Jan Hubicka <jh@suse.cz> + PR middle-end/32581 * tree-profile.c (add_abnormal_goto_call_edges): New function. (tree_gen_interval_profiler, tree_gen_pow2_profiler, diff --git a/gcc/Makefile.in b/gcc/Makefile.in index f486392..b75c678 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -2586,7 +2586,7 @@ simplify-rtx.o : simplify-rtx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ cgraph.o : cgraph.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \ langhooks.h $(TOPLEV_H) $(FLAGS_H) $(GGC_H) $(TARGET_H) $(CGRAPH_H) \ gt-cgraph.h output.h intl.h $(BASIC_BLOCK_H) debug.h $(HASHTAB_H) \ - $(TREE_INLINE_H) $(VARRAY_H) $(TREE_DUMP_H) $(TREE_FLOW_H) + $(TREE_INLINE_H) $(VARRAY_H) $(TREE_DUMP_H) $(TREE_FLOW_H) value-prof.h cgraphunit.o : cgraphunit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ $(TREE_H) langhooks.h $(TREE_INLINE_H) $(TOPLEV_H) $(FLAGS_H) $(GGC_H) \ $(TARGET_H) $(CGRAPH_H) intl.h pointer-set.h $(FUNCTION_H) $(GIMPLE_H) \ diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 89a083a..90359a4 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -84,6 +84,7 @@ The callgraph: #include "gimple.h" #include "tree-dump.h" #include "tree-flow.h" +#include "value-prof.h" static void cgraph_node_remove_callers (struct cgraph_node *node); static inline void cgraph_edge_remove_caller (struct cgraph_edge *e); @@ -906,6 +907,9 @@ cgraph_release_function_body (struct cgraph_node *node) gcc_assert (dom_computed[1] == DOM_NONE); clear_edges (); } + if (cfun->value_histograms) + free_histograms (); + gcc_assert (!current_loops); pop_cfun(); gimple_set_body (node->decl, NULL); VEC_free (ipa_opt_pass, heap, |