------- Comment #4 from howarth at nitro dot med dot uc dot edu 2010-03-31 15:19 ------- If I am reading gcc/configure.ac correctly, darwin shouldn't using TLS in that part of the build. So perhaps we just need to add a wrapper like...
Index: gcc/tree-profile.c =================================================================== --- gcc/tree-profile.c (revision 157868) +++ gcc/tree-profile.c (working copy) @@ -82,7 +82,9 @@ TREE_PUBLIC (ic_void_ptr_var) = 0; DECL_ARTIFICIAL (ic_void_ptr_var) = 1; DECL_INITIAL (ic_void_ptr_var) = NULL; + #ifdef HAVE_AS_TLS DECL_TLS_MODEL (ic_void_ptr_var) = decl_default_tls_model (ic_void_ptr_var); + #endif varpool_finalize_decl (ic_void_ptr_var); gcov_type_ptr = build_pointer_type (get_gcov_type ()); or do we need more tests for TLS in configure.ac there? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43602