projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e64d18
)
x86: Replace __glibc_unlikely with __builtin_expect
author
H.J. Lu
<hjl.tools@gmail.com>
Tue, 14 Jul 2020 21:01:51 +0000
(14:01 -0700)
committer
H.J. Lu
<hjl.tools@gmail.com>
Tue, 14 Jul 2020 21:04:36 +0000
(14:04 -0700)
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.
gcc/testsuite/gcc.target/i386/pr95443-1.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.target/i386/pr95443-1.c
b/gcc/testsuite/gcc.target/i386/pr95443-1.c
index 292ff16afddcd9cebe5bacf2025feb22e4ce0371..698dfa0218968c189438aca385965719f7af7544 100644
(file)
--- 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)