diff options
Diffstat (limited to 'gcc-4.4.0/gcc/tree-profile.c')
-rw-r--r-- | gcc-4.4.0/gcc/tree-profile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/tree-profile.c b/gcc-4.4.0/gcc/tree-profile.c index 2e66cf49a..1154ef712 100644 --- a/gcc-4.4.0/gcc/tree-profile.c +++ b/gcc-4.4.0/gcc/tree-profile.c @@ -120,6 +120,11 @@ tree_init_ic_make_global_vars (void) TREE_STATIC (ic_void_ptr_var) = 1; TREE_PUBLIC (ic_void_ptr_var) = 0; DECL_INITIAL (ic_void_ptr_var) = NULL; + if (targetm.have_tls) + { + DECL_TLS_MODEL (ic_void_ptr_var) = + decl_default_tls_model (ic_void_ptr_var); + } gcov_type_ptr = build_pointer_type (get_gcov_type ()); ic_gcov_type_ptr_var @@ -129,6 +134,11 @@ tree_init_ic_make_global_vars (void) TREE_STATIC (ic_gcov_type_ptr_var) = 1; TREE_PUBLIC (ic_gcov_type_ptr_var) = 0; DECL_INITIAL (ic_gcov_type_ptr_var) = NULL; + if (targetm.have_tls) + { + DECL_TLS_MODEL (ic_gcov_type_ptr_var) = + decl_default_tls_model (ic_gcov_type_ptr_var); + } } DECL_ARTIFICIAL (ic_void_ptr_var) = 1; |