lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
authorJan Hubicka <jh@suse.cz>
Fri, 30 Aug 2013 07:33:56 +0000 (09:33 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 30 Aug 2013 07:33:56 +0000 (07:33 +0000)
* lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
* cgraph.c (cgraph_release_function_body): Free decl_in_state.
* lto-section-in.c (lto_free_function_in_decl_state): New function.
(lto_free_function_in_decl_state_for_node): New function.

From-SVN: r202094

gcc/ChangeLog
gcc/lto-streamer.h

index c41e8edeb4c817805e1719c878907269f7187764..83e36218d4aefdb8d8e51cfc3c1e05c52782df8c 100644 (file)
@@ -1,3 +1,10 @@
+2013-08-29  Jan Hubicka  <jh@suse.cz>
+
+       * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
+       * cgraph.c (cgraph_release_function_body): Free decl_in_state.
+       * lto-section-in.c (lto_free_function_in_decl_state): New function.
+       (lto_free_function_in_decl_state_for_node): New function.
+
 2013-08-29  Xinliang David Li  <davidxl@google.com>
 
        * loop-unroll.c (report_unroll_peel): Minor message
index e7c89f16162240429daf853e00a0ea0712f9a6d4..663ab24aa05a46a3825284cd297aeb7fef4fae05 100644 (file)
@@ -774,6 +774,8 @@ extern hashval_t lto_hash_in_decl_state (const void *);
 extern int lto_eq_in_decl_state (const void *, const void *);
 extern struct lto_in_decl_state *lto_get_function_in_decl_state (
                                      struct lto_file_decl_data *, tree);
+extern void lto_free_function_in_decl_state (struct lto_in_decl_state *);
+extern void lto_free_function_in_decl_state_for_node (symtab_node);
 extern void lto_section_overrun (struct lto_input_block *) ATTRIBUTE_NORETURN;
 extern void lto_value_range_error (const char *,
                                   HOST_WIDE_INT, HOST_WIDE_INT,