aboutsummaryrefslogtreecommitdiff
path: root/string/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-05-28 05:26:16 +0000
committerUlrich Drepper <drepper@redhat.com>2002-05-28 05:26:16 +0000
commit834cef7c02db3d9284ce2098519859ec81c3b996 (patch)
treef52629cf057e42582c3d95204aade406c85cde48 /string/bits
parentc0a0f9a32c8baa6ab93d00eb42d92c02e9e146d7 (diff)
downloadglibc-834cef7c02db3d9284ce2098519859ec81c3b996.tar
glibc-834cef7c02db3d9284ce2098519859ec81c3b996.tar.gz
glibc-834cef7c02db3d9284ce2098519859ec81c3b996.tar.bz2
glibc-834cef7c02db3d9284ce2098519859ec81c3b996.zip
Update.
2002-05-27 Alexandre Oliva <aoliva@redhat.com> * configure.in (DO_STATIC_NSS): Define if --disable-shared. 2002-05-26 Bruno Haible <bruno@clisp.org> * iconvdata/iso-2022-jp.c (BODY for TO_LOOP): Avoid running off the end of the ISO-8859-7 from idx table. 2002-05-27 Ulrich Drepper <drepper@redhat.com> * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649]. 2002-05-24 David S. Miller <davem@redhat.com> * string/bits/string2.h (memset): Do not try to optimize when not _STRING_ARCH_unaligned if GCC will do the right thing.
Diffstat (limited to 'string/bits')
-rw-r--r--string/bits/string2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index da168facc2..a02b0558f1 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -178,10 +178,12 @@ __STRING2_COPY_TYPE (8);
\
__s; })
# else
-# define memset(s, c, n) \
+# if ! __GNUC_PREREQ (3, 0)
+# define memset(s, c, n) \
(__extension__ (__builtin_constant_p (c) && (c) == '\0' \
? ({ void *__s = (s); __bzero (__s, n); __s; }) \
: memset (s, c, n)))
+# endif
# endif
/* GCC optimizes memset(s, 0, n) but not bzero(s, n).