OSDN Git Service

* tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Apr 2010 14:24:44 +0000 (14:24 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Apr 2010 14:24:44 +0000 (14:24 +0000)
needed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158937 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-profile.c

index 91f0282..a211704 100644 (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
index e974329..a907510 100644 (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