Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* string/bits/string2.h: Disable strstr optimizations for newer
	gcc versions.  Patch by Joseph S. Myers <jsm28@cam.ac.uk>.
  • Loading branch information
Ulrich Drepper committed Nov 1, 2000
1 parent 4442d7e commit e8e2432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
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.

2000-10-31 Ulrich Drepper <drepper@redhat.com>
Expand Down
5 changes: 3 additions & 2 deletions string/bits/string2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,9 @@ __strpbrk_c3 (__const char *__s, char __accept1, char __accept2,
#endif


/* Find the first occurrence of NEEDLE in HAYSTACK. */
#ifndef _HAVE_STRING_ARCH_strstr
/* Find the first occurrence of NEEDLE in HAYSTACK. Newer gcc versions
do this itself. */
#if !defined _HAVE_STRING_ARCH_strstr && !__GNUC_PREREQ (2, 97)
# define strstr(haystack, needle) \
(__extension__ (__builtin_constant_p (needle) && __string2_1bptr_p (needle) \
? (((__const char *) (needle))[0] == '\0' \
Expand Down

0 comments on commit e8e2432

Please sign in to comment.