]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph.c: Include value-prof.h
authorJan Hubicka <jh@suse.cz>
Sat, 13 Sep 2008 22:32:57 +0000 (00:32 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 13 Sep 2008 22:32:57 +0000 (22:32 +0000)
* cgraph.c: Include value-prof.h
* Makefile.in (cgraph.o): Add value-prof.h dependency.

From-SVN: r140350

gcc/ChangeLog
gcc/Makefile.in
gcc/cgraph.c

index 3020ade01867585d6e986422e054c4a2b10e8c66..7f6649ec21a6edd1bb407d3bb5fba9850d5c990a 100644 (file)
@@ -1,3 +1,8 @@
+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
index f486392433bd773c9d0b0d415d4eb5b09f9df157..b75c678ba577ddc2b9d08f95f912a493ebd77ae3 100644 (file)
@@ -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) \
index 89a083a8a17903ebe9cdb167c25c6c719a6dccd3..90359a46b1fdb13c5cf8b92512eab1724044b7b1 100644 (file)
@@ -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,