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.
This commit is contained in:
H.J. Lu 2020-07-14 14:01:51 -07:00
parent 8e64d18285
commit b2984e5ada

View File

@ -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)