[Bug tree-optimization/85788] False positive of -Wstringop-overflow= warning

2024-10-10 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85788 --- Comment #5 from qinzhao at gcc dot gnu.org --- with my current patch to PR109071, adding -fdiagnostics-explain-harder, with an additional option -fno-tree-dominator-opts, the diagnostic becomes: t_85788.c:5:3: warning: ‘__builtin___memset_ch

[Bug tree-optimization/85788] False positive of -Wstringop-overflow= warning

2024-10-10 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85788 --- Comment #4 from qinzhao at gcc dot gnu.org --- (In reply to Martin Liška from comment #0) > As seen, d == 0, thus 'for (; c; c = e)' never executes. It's combination of > jump-threading and VRP that triggers the warning. Yes, in this specific

[Bug tree-optimization/85788] False positive of -Wstringop-overflow= warning

2024-10-03 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85788 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org -

[Bug tree-optimization/85788] False positive of -Wstringop-overflow= warning

2018-05-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85788 --- Comment #2 from Martin Liška --- Created attachment 44137 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44137&action=edit original test-case On trunk disappeared in r259672. I'm attaching original test-case which reproduces on trunk a

[Bug tree-optimization/85788] False positive of -Wstringop-overflow= warning

2018-05-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85788 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|