1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* string/bits/string2.h: Disable strstr optimizations for newer
	gcc versions.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
This commit is contained in:
Ulrich Drepper
2000-11-01 16:39:15 +00:00
parent 4442d7e8ee
commit e8e24320d2
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2000-11-01 Ulrich Drepper <drepper@redhat.com> 2000-11-01 Ulrich Drepper <drepper@redhat.com>
* string/bits/string2.h: Disable strstr optimizations for newer
gcc versions. Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
* configure.in (with_cvs): Test for pserver access. * configure.in (with_cvs): Test for pserver access.
2000-10-31 Ulrich Drepper <drepper@redhat.com> 2000-10-31 Ulrich Drepper <drepper@redhat.com>

View File

@ -1006,8 +1006,9 @@ __strpbrk_c3 (__const char *__s, char __accept1, char __accept2,
#endif #endif
/* Find the first occurrence of NEEDLE in HAYSTACK. */ /* Find the first occurrence of NEEDLE in HAYSTACK. Newer gcc versions
#ifndef _HAVE_STRING_ARCH_strstr do this itself. */
#if !defined _HAVE_STRING_ARCH_strstr && !__GNUC_PREREQ (2, 97)
# define strstr(haystack, needle) \ # define strstr(haystack, needle) \
(__extension__ (__builtin_constant_p (needle) && __string2_1bptr_p (needle) \ (__extension__ (__builtin_constant_p (needle) && __string2_1bptr_p (needle) \
? (((__const char *) (needle))[0] == '\0' \ ? (((__const char *) (needle))[0] == '\0' \