[gcc/devel/lto-offload] x86: Replace __glibc_unlikely with __builtin_expect
John Ravi
jjravi@gcc.gnu.org
Wed Aug 19 20:29:22 GMT 2020
https://gcc.gnu.org/g:b2984e5ada65f417e8704d2e1e81ccd0272b5eb3
commit b2984e5ada65f417e8704d2e1e81ccd0272b5eb3
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Jul 14 14:01:51 2020 -0700
x86: Replace __glibc_unlikely with __builtin_expect
Replace glibc specific __glibc_unlikely with __builtin_expect.
PR target/95443
* gcc.target/i386/pr95443-1.c (simple_strstr): Replace
__glibc_unlikely with __builtin_expect.
Diff:
---
gcc/testsuite/gcc.target/i386/pr95443-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/i386/pr95443-1.c b/gcc/testsuite/gcc.target/i386/pr95443-1.c
index 292ff16afdd..698dfa02189 100644
--- a/gcc/testsuite/gcc.target/i386/pr95443-1.c
+++ b/gcc/testsuite/gcc.target/i386/pr95443-1.c
@@ -49,7 +49,7 @@ simple_strstr (const char *haystack, const char *needle)
while (1)
{
- if (__glibc_unlikely (hs > end))
+ if (__builtin_expect (hs > end, 0))
{
end += strnlen ((const char*)end + m1 + 1, 2048);
if (hs > end)
More information about the Gcc-cvs
mailing list