OSDN Git Service

2008-12-29 Seongbae Park <seongbae.park@gmail.com>
authorspark <spark@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Dec 2008 20:10:21 +0000 (20:10 +0000)
committerspark <spark@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Dec 2008 20:10:21 +0000 (20:10 +0000)
* tree-profile.c (tree_init_ic_make_global_vars): Make static
variables TLS.

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

gcc/ChangeLog
gcc/tree-profile.c

index 00dcec7..c55f3f8 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-29  Seongbae Park  <seongbae.park@gmail.com>
+
+       * tree-profile.c (tree_init_ic_make_global_vars): Make static
+       variables TLS.
+
 2008-12-29  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/36191
 2008-12-29  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/36191
index 4467668..d13ea02 100644 (file)
@@ -82,6 +82,7 @@ tree_init_ic_make_global_vars (void)
   TREE_PUBLIC (ic_void_ptr_var) = 0;
   DECL_ARTIFICIAL (ic_void_ptr_var) = 1;
   DECL_INITIAL (ic_void_ptr_var) = NULL;
   TREE_PUBLIC (ic_void_ptr_var) = 0;
   DECL_ARTIFICIAL (ic_void_ptr_var) = 1;
   DECL_INITIAL (ic_void_ptr_var) = NULL;
+  DECL_TLS_MODEL (ic_void_ptr_var) = decl_default_tls_model (ic_void_ptr_var);
   assemble_variable (ic_void_ptr_var, 0, 0, 0);
 
   gcov_type_ptr = build_pointer_type (get_gcov_type ());
   assemble_variable (ic_void_ptr_var, 0, 0, 0);
 
   gcov_type_ptr = build_pointer_type (get_gcov_type ());
@@ -93,6 +94,7 @@ tree_init_ic_make_global_vars (void)
   TREE_PUBLIC (ic_gcov_type_ptr_var) = 0;
   DECL_ARTIFICIAL (ic_gcov_type_ptr_var) = 1;
   DECL_INITIAL (ic_gcov_type_ptr_var) = NULL;
   TREE_PUBLIC (ic_gcov_type_ptr_var) = 0;
   DECL_ARTIFICIAL (ic_gcov_type_ptr_var) = 1;
   DECL_INITIAL (ic_gcov_type_ptr_var) = NULL;
+  DECL_TLS_MODEL (ic_gcov_type_ptr_var) = decl_default_tls_model (ic_gcov_type_ptr_var);
   assemble_variable (ic_gcov_type_ptr_var, 0, 0, 0);
 }
 
   assemble_variable (ic_gcov_type_ptr_var, 0, 0, 0);
 }