mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user