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.26.9000-1248-g407552c
- From: sthibaul at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Jan 2018 20:42:55 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-1248-g407552c
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 407552cf0b1cc7b992c5a8ad7f29ba5ce6ac5dfc (commit)
from d31a4a4803fab392e8111eec117dbb62531d202c (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=407552cf0b1cc7b992c5a8ad7f29ba5ce6ac5dfc
commit 407552cf0b1cc7b992c5a8ad7f29ba5ce6ac5dfc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Tue Jan 30 21:42:21 2018 +0100
allocalim.h: use __glibc_likely instead of __builtin_expect
* sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
instead of __builtin_expect.
diff --git a/ChangeLog b/ChangeLog
index 3c48684..06250f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org
+
+ * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
+ instead of __builtin_expect.
+
2018-01-30 Florian Weimer <fweimer@redhat.com>
* nss/bug17079.c (do_test): Use nss_files only for reading passwd
diff --git a/sysdeps/pthread/allocalim.h b/sysdeps/pthread/allocalim.h
index 38faf57..99f7483 100644
--- a/sysdeps/pthread/allocalim.h
+++ b/sysdeps/pthread/allocalim.h
@@ -24,9 +24,9 @@ extern __always_inline
int
__libc_use_alloca (size_t size)
{
- return (__builtin_expect (__libc_alloca_cutoff (size), 1)
+ return (__glibc_likely (__libc_alloca_cutoff (size))
#ifdef PTHREAD_STACK_MIN
- || __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
+ || __glibc_likely (size <= PTHREAD_STACK_MIN / 4)
#endif
);
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/pthread/allocalim.h | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources