Hi I just got the following while running Vim's testsuite.
<output> *** buffer overflow detected ***: vim terminated; report to <http://bugs.gentoo.org/> Makefile:151: recipe for target 'af.ck' failed make[2]: *** [af.ck] Killed </output> The compiler gave me the following warning. <output> gcc -c -I. -Iproto -DHAVE_CONFIG_H -O1 -o objects/if_cscope.o if_cscope.c In file included from /usr/include/string.h:639:0, from os_unix.h:542, from vim.h:282, from eval.c:14: In function ‘strcpy’, inlined from ‘add_nr_var’ at eval.c:24396:5, inlined from ‘call_user_func’ at eval.c:24061:5: /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); ^ In function ‘strcpy’, inlined from ‘call_user_func’ at eval.c:24067:5: /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); ^ In function ‘strcpy’, inlined from ‘add_nr_var’ at eval.c:24396:5, inlined from ‘call_user_func’ at eval.c:24082:5: /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); ^ In function ‘strcpy’, inlined from ‘add_nr_var’ at eval.c:24396:5, inlined from ‘call_user_func’ at eval.c:24084:5: /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); ^ </output> This seems to only happen with -O1. I don't get this behaviour with -O2. Do you need more info? Should I file a bug? -- Greetings Elias