tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as needed.

* tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
	needed.

From-SVN: r158937
This commit is contained in:
Jan Hubicka 2010-04-30 16:24:44 +02:00 committed by Jan Hubicka
parent 47d8a9035d
commit 9c6e079827
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-04-30 Jan Hubicka <jh@suse.cz>
* tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
needed.
2010-04-30 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (get_constraint_for_1): Generate

View File

@ -83,6 +83,7 @@ tree_init_ic_make_global_vars (void)
DECL_ARTIFICIAL (ic_void_ptr_var) = 1;
DECL_INITIAL (ic_void_ptr_var) = NULL;
varpool_finalize_decl (ic_void_ptr_var);
varpool_mark_needed_node (varpool_node (ic_void_ptr_var));
gcov_type_ptr = build_pointer_type (get_gcov_type ());
ic_gcov_type_ptr_var
@ -94,6 +95,7 @@ tree_init_ic_make_global_vars (void)
DECL_ARTIFICIAL (ic_gcov_type_ptr_var) = 1;
DECL_INITIAL (ic_gcov_type_ptr_var) = NULL;
varpool_finalize_decl (ic_gcov_type_ptr_var);
varpool_mark_needed_node (varpool_node (ic_gcov_type_ptr_var));
}
static void