[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-12 Thread quentin at armitage dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 Quentin Armitage changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-12 Thread quentin at armitage dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 --- Comment #5 from Quentin Armitage --- In the code of my original example (which I have simplified) === #include static char dest[16]; static char src[16] = "012345678901234"; int main(__attribute__(void) {

[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 Martin Sebor changed: What|Removed |Added Resolution|--- |INVALID CC|

[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-12 Thread quentin at armitage dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 --- Comment #3 from Quentin Armitage --- According to the man page for strncat: As with strcat(), the resulting string in dest is always null-terminated. If src contains n or more bytes, strncat() writes n+1 bytes to dest (n from

[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-12 Thread quentin at armitage dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 --- Comment #2 from Quentin Armitage --- Created attachment 51297 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51297&action=edit ipvswrapper.i for strncpy truncated warning The following warning is generated: gcc -c -o ipvswrapper.o1 -

[Bug tree-optimization/101451] Incorrect -Wstringop-truncation warning

2021-08-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-11 Status|UNCONFIRM