summary refs log tree commit diff
path: root/gmon
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2014-05-06 11:55:24 +0200
committerAndreas Schwab <schwab@suse.de>2014-05-06 16:30:48 +0200
commit978a41c35738dbe4592edb7dcaa155fec31dab50 (patch)
tree77194186d69c4cdaff3ec4b6433ba64d8af2b6e6 /gmon
parentfe6588457a7b66c6cfcd6e51640453de59b8017b (diff)
downloadglibc-978a41c35738dbe4592edb7dcaa155fec31dab50.tar.gz
glibc-978a41c35738dbe4592edb7dcaa155fec31dab50.tar.xz
glibc-978a41c35738dbe4592edb7dcaa155fec31dab50.zip
Don't use catomic functions in mcount (BZ #16912)
mcount cannot use catomic functions since it is called by
__libc_start_main before TLS is set up.  This reverts the change made by
commit 8099361.
Diffstat (limited to 'gmon')
-rw-r--r--gmon/mcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmon/mcount.c b/gmon/mcount.c
index 0c2acd2890..9d4a1a50fa 100644
--- a/gmon/mcount.c
+++ b/gmon/mcount.c
@@ -69,8 +69,8 @@ _MCOUNT_DECL(frompc, selfpc)	/* _mcount; may be static, inline, etc */
 	 * check that we are profiling
 	 * and that we aren't recursively invoked.
 	 */
-	if (catomic_compare_and_exchange_bool_acq (&p->state, GMON_PROF_BUSY,
-						   GMON_PROF_ON))
+	if (atomic_compare_and_exchange_bool_acq (&p->state, GMON_PROF_BUSY,
+						  GMON_PROF_ON))
 	  return;
 
 	/*