[Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string

2018-08-24 Thread anon63 at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87028 --- Comment #6 from anon63 --- Dear Martin, Thank you for all these details. Well, re-reading what I wrote in Comment 0, I think I should explain what I meant by "Lots of codebases can't be compiled with -Werror flag now.". Since the gcc-7 ->

[Bug c/87028] false positive -Wstringop-truncation strncpy with global variable source string

2018-08-23 Thread anon63 at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87028 --- Comment #3 from anon63 --- Dear Martin, Thank you for the explanations. Do you have any advice of what we should do before this eventual deferring of the strncpy -> memcpy folding in a future gcc release ? In particular, can you elaborate

[Bug c/87028] New: false positive -Wstringop-truncation strncpy with global variable source string

2018-08-20 Thread anon63 at protonmail dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anon63 at protonmail dot com Target Milestone: --- Hi, Just builded latest gcc (GCC) 9.0.0 20180820 (experimental) commit 316828699 on Debian Linux 4.17.0-1-amd64 with gcc