Hi,
This was approved by Honza in the PR thread.
applied as 201829

cheers
Iain

libgcc:

        PR gcov-profile/58127
        * libgcov.c (__gcov_indirect_call_callee): Don't make this a
        __thread var for emulated TLS.
        (__gcov_indirect_call_counters): Likewise.

Index: libgcc/libgcov.c
===================================================================
--- libgcc/libgcov.c    (revision 201825)
+++ libgcc/libgcov.c    (working copy)
@@ -1162,11 +1162,11 @@ __gcov_indirect_call_profiler (gcov_type* counter,
    The variables are set directly by GCC instrumented code, so declaration
    here must match one in tree-profile.c  */
 
-#ifdef HAVE_CC_TLS
+#if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS)
 __thread 
 #endif
 void * __gcov_indirect_call_callee;
-#ifdef HAVE_CC_TLS
+#if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS) 
 __thread 
 #endif
 gcov_type * __gcov_indirect_call_counters;

Reply via email to