]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgcc:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 2013 15:50:17 +0000 (15:50 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Aug 2013 15:50:17 +0000 (15:50 +0000)
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.

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

libgcc/ChangeLog
libgcc/libgcov.c

index 00fdc8d891efc1658a60f646594c13ff754f6abb..2f415bfc80a272c49bf587321e046e1a5868524f 100644 (file)
@@ -1,3 +1,10 @@
+2013-08-18  Iain Sandoe  <iain@codesourcery.com>
+
+       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.
+
 2013-08-16  Maciej W. Rozycki  <macro@codesourcery.com>
             Catherine Moore  <clm@codesourcery.com>
             Richard Sandiford <rdsandiford@googlemail.com>
index d1a989274f4a314e250aa530856319a453957f8f..3c39331e6baa429010b3886e42c61118e120a18f 100644 (file)
@@ -1162,11 +1162,11 @@ __gcov_indirect_call_profiler (gcov_type* counter, gcov_type value,
    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;