This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto][patch] Simple bug fix
- From: "Rafael Espindola" <espindola at google dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Diego Novillo" <dnovillo at google dot com>
- Date: Wed, 22 Oct 2008 09:36:01 +0100
- Subject: [lto][patch] Simple bug fix
funct_state_vec is now a VEC, and we do call VEC_free on it. Stop
calling free as well.
2008-10-22 Rafael Espindola <espindola@google.com>
* ipa-pure-const.c (finish_state): Remove.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index c63a454..32ae86c 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -105,15 +105,6 @@ static struct cgraph_node_hook_list *function_insertion_hook_holder;
static struct cgraph_2node_hook_list *node_duplication_hook_holder;
static struct cgraph_node_hook_list *node_removal_hook_holder;
-/* Init the function state. */
-
-static void
-finish_state (void)
-{
- free (funct_state_vec);
-}
-
-
/* Return the function state from NODE. */
static inline funct_state
@@ -990,7 +981,6 @@ propagate (void)
free (order);
VEC_free (funct_state, heap, funct_state_vec);
- finish_state ();
return 0;
}