[Bug tree-optimization/81772] Compile-time snprintf optimization

2021-09-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/81772] Compile-time snprintf optimization

2019-05-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/81772] Compile-time snprintf optimization

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

[Bug tree-optimization/81772] Compile-time snprintf optimization

2017-08-08 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772 --- Comment #2 from Daniel Fruzynski --- You probably could optimize snprintf(buf, size, "%s", str) into this: if (size > 0) { buf[0] = 0; strncat(buf, str, size - 1); } Other optimizations would require

[Bug tree-optimization/81772] Compile-time snprintf optimization

2017-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #1