mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* string/bits/string2.h: Only use __builtin_memset for egcs 1.1 and gcc3.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user