From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16087 invoked by alias); 31 Mar 2010 15:19:46 -0000 Received: (qmail 15973 invoked by uid 48); 31 Mar 2010 15:19:30 -0000 Date: Wed, 31 Mar 2010 15:19:00 -0000 Message-ID: <20100331151930.15972.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/43602] ___emutls_v.__gcov_indirect_call_[counters|callee] undefined on *-*-darwin* In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg03169.txt.bz2 ------- 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