From 834cef7c02db3d9284ce2098519859ec81c3b996 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 28 May 2002 05:26:16 +0000 Subject: Update. 2002-05-27 Alexandre Oliva * configure.in (DO_STATIC_NSS): Define if --disable-shared. 2002-05-26 Bruno Haible * 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 * manual/lang.texi: Fix FLT_EPSILON description [PR libc/3649]. 2002-05-24 David S. Miller * string/bits/string2.h (memset): Do not try to optimize when not _STRING_ARCH_unaligned if GCC will do the right thing. --- string/bits/string2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'string') 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). -- cgit v1.2.3