This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/58127] [4.9 Regression] 37 failures in gcc.dg/tree-prof/ for x86_64-apple-darwin10
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Aug 2013 13:50:19 +0000
- Subject: [Bug gcov-profile/58127] [4.9 Regression] 37 failures in gcc.dg/tree-prof/ for x86_64-apple-darwin10
- Auto-submitted: auto-generated
- References: <bug-58127-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58127
--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>
> #if defined(HAVE_CC_TLS) && !defined (USE_EMUTLS)
>
> does, indeed, work.
I have done a clean bootstrap with
--- ../_clean/libgcc/libgcov.c 2013-08-11 13:28:22.000000000 +0200
+++ libgcc/libgcov.c 2013-08-18 12:30:01.000000000 +0200
@@ -1162,11 +1162,11 @@ __gcov_indirect_call_profiler (gcov_type
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;
and the failures for gcc.dg/tree-prof/* and g++.dg/tree-prof/* are gone.
Thanks.