mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
2002-01-29 Ben Collins <bcollins@debian.org> * string/bits/string2.h (__mempcpy): Protect size arg for addition when using __builtin_memcpy.
This commit is contained in:
parent
207b66ceeb
commit
9d7810d8c5
@ -1,3 +1,8 @@
|
||||
2002-01-29 Ben Collins <bcollins@debian.org>
|
||||
|
||||
* string/bits/string2.h (__mempcpy): Protect size arg for
|
||||
addition when using __builtin_memcpy.
|
||||
|
||||
2002-01-29 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* stdlib/Makefile (tests): Add tst-qsort.
|
||||
|
@ -202,7 +202,7 @@ __STRING2_COPY_TYPE (8);
|
||||
# define __mempcpy(dest, src, n) \
|
||||
(__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \
|
||||
&& __string2_1bptr_p (src) && n <= 8 \
|
||||
? __builtin_memcpy (dest, src, n) + n \
|
||||
? __builtin_memcpy (dest, src, n) + (n) \
|
||||
: __mempcpy (dest, src, n)))
|
||||
# else
|
||||
# define __mempcpy(dest, src, n) \
|
||||
|
Loading…
Reference in New Issue
Block a user