From a97d1494f7dc5ec6978aa234b15faff29a4607ee Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 1 May 1999 09:59:45 +0000 Subject: Update. * string/bits/string2.h: Only use __builtin_memset for egcs 1.1 and gcc3. --- string/bits/string2.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'string') diff --git a/string/bits/string2.h b/string/bits/string2.h index aedadf4..4d67c57 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -166,8 +166,9 @@ __STRING2_COPY_TYPE (8); # endif /* GCC optimizes memset(s, 0, n) but not bzero(s, n). */ -# if defined __GNUC__ && __GNUC__ >= 2 -# define __bzero(s, n) __builtin_memset(s, '\0', n) +#if defined __GNUC__ \ + && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 90)) +# define __bzero(s, n) __builtin_memset (s, '\0', n) # endif #endif -- cgit v1.1