This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.24-450-g657c084
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 7 Dec 2016 08:36:04 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-450-g657c084
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 657c084cd6f69d6cc880c2ae65129a0723d053c5 (commit)
from 1dae0a14439a2d530402e9770359648c7eb3a784 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=657c084cd6f69d6cc880c2ae65129a0723d053c5
commit 657c084cd6f69d6cc880c2ae65129a0723d053c5
Author: Andreas Schwab <schwab@suse.de>
Date: Mon Dec 5 12:06:46 2016 +0100
Get rid of __elision_available
diff --git a/ChangeLog b/ChangeLog
index 88e6320..ccfd0ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-12-07 Andreas Schwab <schwab@suse.de>
+
+ * sysdeps/unix/sysv/linux/x86/elision-conf.h
+ (__elision_available): Don't declare.
+ * sysdeps/unix/sysv/linux/x86/elision-conf.c
+ (__elision_available): Don't define.
+ (elision_init): Don't set __elision_available.
+
2016-12-07 Joseph Myers <joseph@codesourcery.com>
[BZ #20940]
diff --git a/sysdeps/unix/sysv/linux/x86/elision-conf.c b/sysdeps/unix/sysv/linux/x86/elision-conf.c
index 0d98133..c8e77a6 100644
--- a/sysdeps/unix/sysv/linux/x86/elision-conf.c
+++ b/sysdeps/unix/sysv/linux/x86/elision-conf.c
@@ -43,11 +43,6 @@ struct elision_config __elision_aconf =
.skip_trylock_internal_abort = 3,
};
-/* Set when the CPU supports elision. When false elision is never attempted.
- */
-
-int __elision_available attribute_hidden;
-
/* Force elision for all new locks. This is used to decide whether existing
DEFAULT locks should be automatically upgraded to elision in
pthread_mutex_lock(). Disabled for suid programs. Only used when elision
@@ -62,11 +57,11 @@ elision_init (int argc __attribute__ ((unused)),
char **argv __attribute__ ((unused)),
char **environ)
{
- __elision_available = HAS_CPU_FEATURE (RTM);
+ int elision_available = HAS_CPU_FEATURE (RTM);
#ifdef ENABLE_LOCK_ELISION
- __pthread_force_elision = __libc_enable_secure ? 0 : __elision_available;
+ __pthread_force_elision = __libc_enable_secure ? 0 : elision_available;
#endif
- if (!HAS_CPU_FEATURE (RTM))
+ if (!elision_available)
__elision_aconf.retry_try_xbegin = 0; /* Disable elision on rwlocks */
}
diff --git a/sysdeps/unix/sysv/linux/x86/elision-conf.h b/sysdeps/unix/sysv/linux/x86/elision-conf.h
index 6c479b3..39bf5d9 100644
--- a/sysdeps/unix/sysv/linux/x86/elision-conf.h
+++ b/sysdeps/unix/sysv/linux/x86/elision-conf.h
@@ -33,7 +33,6 @@ struct elision_config
extern struct elision_config __elision_aconf attribute_hidden;
-extern int __elision_available attribute_hidden;
extern int __pthread_force_elision attribute_hidden;
/* Tell the test suite to test elision for this architecture. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
sysdeps/unix/sysv/linux/x86/elision-conf.c | 11 +++--------
sysdeps/unix/sysv/linux/x86/elision-conf.h | 1 -
3 files changed, 11 insertions(+), 9 deletions(-)
hooks/post-receive
--
GNU C Library master sources