This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The new optimization does this for __memcpy: __builtin_memcpy (dest, src, n) + n But like in gconv_conf.c, it is used sometimes like this: char *to, *from; .... memcpy(dest, src, to - from); This patch fixes that: 2002-01-29 Ben Collins <bcollins@debian.org> * string/bits/string2.h: __mempcpy(): Protect size arg for addition when using __builtin_memcpy. -- .----------=======-=-======-=========-----------=====------------=-=-----. / Ben Collins -- Debian GNU/Linux -- WatchGuard.com \ ` bcollins@debian.org -- Ben.Collins@watchguard.com ' `---=========------=======-------------=-=-----=-===-======-------=--=---'
Attachment:
strings2.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |