Commit 0a0b07b7 by Jan Hubicka Committed by Jan Hubicka

lto.c (lto_fixup_decls): Remove global var decls freeing here.


	* lto.c (lto_fixup_decls): Remove global var decls freeing here.
	(materialize_cgraph): Add it here.

From-SVN: r159281
parent 9a809897
2010-05-11 Jan Hubicka <jh@suse.cz> 2010-05-11 Jan Hubicka <jh@suse.cz>
* lto.c (lto_fixup_decls): Remove global var decls freeing here.
(materialize_cgraph): Add it here.
2010-05-11 Jan Hubicka <jh@suse.cz>
* lto.c (lto_fixup_decls): Free no longer needed lto_global_var_decls * lto.c (lto_fixup_decls): Free no longer needed lto_global_var_decls
vector. vector.
......
...@@ -1454,8 +1454,6 @@ lto_fixup_decls (struct lto_file_decl_data **files) ...@@ -1454,8 +1454,6 @@ lto_fixup_decls (struct lto_file_decl_data **files)
VEC_replace (tree, lto_global_var_decls, i, decl); VEC_replace (tree, lto_global_var_decls, i, decl);
} }
VEC_free (tree, gc, lto_global_var_decls);
lto_global_var_decls = NULL;
pointer_set_destroy (seen); pointer_set_destroy (seen);
} }
...@@ -1710,6 +1708,9 @@ materialize_cgraph (void) ...@@ -1710,6 +1708,9 @@ materialize_cgraph (void)
for (i = 0; VEC_iterate (tree, lto_global_var_decls, i, decl); i++) for (i = 0; VEC_iterate (tree, lto_global_var_decls, i, decl); i++)
rest_of_decl_compilation (decl, 1, 0); rest_of_decl_compilation (decl, 1, 0);
VEC_free (tree, gc, lto_global_var_decls);
lto_global_var_decls = NULL;
if (!quiet_flag) if (!quiet_flag)
fprintf (stderr, "\n"); fprintf (stderr, "\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment