https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772
Martin Sebor changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81772
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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 to generate more code aa you wrote.
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