aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-09-14 00:32:57 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-09-13 22:32:57 +0000
commita63f29427ba31d65547ee0b78e5ddf0dee1cd876 (patch)
tree8b3e4d65bc6ae237194b00c2ae61bcc3c8658bd5 /gcc/cgraph.c
parent71ba42faebfafc76c0650774a66df6efa07683bb (diff)
downloadgcc-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/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 4 insertions, 0 deletions
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,