diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-01 09:59:45 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-01 09:59:45 +0000 |
commit | a97d1494f7dc5ec6978aa234b15faff29a4607ee (patch) | |
tree | f62452d0d55dce0b97bbe9b8c650fb5d9d23cbd4 /string | |
parent | 0d3fe819f6e584ccd1146ffba91c24ae06374ffa (diff) | |
download | glibc-a97d1494f7dc5ec6978aa234b15faff29a4607ee.tar.gz glibc-a97d1494f7dc5ec6978aa234b15faff29a4607ee.tar.xz glibc-a97d1494f7dc5ec6978aa234b15faff29a4607ee.zip |
Update.
* string/bits/string2.h: Only use __builtin_memset for egcs 1.1 and gcc3.
Diffstat (limited to 'string')
-rw-r--r-- | string/bits/string2.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h index aedadf439c..4d67c57a77 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 |