diff mbox

[libgcov,committed] fix PR 58127

Message ID D11CD9A4-6B42-4CF3-B00E-6728F4988F8D@codesourcery.com
State New
Headers show

Commit Message

Iain Sandoe Aug. 18, 2013, 3:51 p.m. UTC
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.
diff mbox

Patch

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;