Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion on brace + 4 characters doesn't work
On 2011-04-29 13:15:58 +0200, Vincent Lefevre wrote:
> In fact, the behavior comes from glibc on x86_64. It can be
> reproduced with:
>
> #include <stdio.h>
> #include <string.h>
>
> int main (void)
> {
> static char s[] = "{abcd";
> volatile int len = 1;
>
> printf ("s = %s\n", s);
> strcpy (s, s + len);
> printf ("s = %s\n", s);
> return 0;
> }
>
> and gcc -fno-builtin (the strcpy builtin was not used anyway).
>
> According to gdb, the source in eglibc-2.11.2 is
> sysdeps/x86_64/multiarch/strcpy.S (strcpy with SSSE3). It can load
> 16 bytes at a time, and it uses special code on these 16 bytes (I'm
> not sure, but it seems to have code for each length).
FYI, this new strcpy code breaks many applications:
http://sourceware.org/bugzilla/show_bug.cgi?id=12518
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author