summary refs log tree commit diff
path: root/include/libc-symbols.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-26 17:59:59 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-26 17:59:59 +0000
commita8eab8b1402ceff505b0cdee440c02a72cc4307d (patch)
tree8e80293b123361be225adf8e0048ffcdb866349d /include/libc-symbols.h
parent665a657ef1aec8a605aa33e46a4f701e2fd9eba3 (diff)
downloadglibc-a8eab8b1402ceff505b0cdee440c02a72cc4307d.tar.gz
glibc-a8eab8b1402ceff505b0cdee440c02a72cc4307d.tar.xz
glibc-a8eab8b1402ceff505b0cdee440c02a72cc4307d.zip
Update.
	* include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
	define __builtin_expect as a macro substituting to the first
	argument.
	* config.h.in: Define HAVE_BUILTIN_EXPECT.
	* configure.in: Add test for __builtin_expect.
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r--include/libc-symbols.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 4684cb7f4a..5d15791fda 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -226,6 +226,11 @@ extern const char _libc_intl_domainname[];
 # define internal_function	/* empty */
 #endif
 
+/* Prepare for the case that `__builtin_expect' is not available.  */
+#ifndef HAVE_BUILTIN_EXPECT
+# define __builtin_expect(expr, val) (expr)
+#endif
+
 /* When a reference to SYMBOL is encountered, the linker will emit a
    warning message MSG.  */
 #ifdef HAVE_GNU_LD