https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330
Martin Sebor changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330
--- Comment #3 from Eric Gallager ---
(In reply to Martin Sebor from comment #2)
> You're right, I didn't consider this case. When copying (strlen(s) + 1) or
> more bytes, d cannot point at the terminating NUL at (s + strlen(s)) because
> the co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330
Martin Sebor changed:
What|Removed |Added
Keywords||missed-optimization
--- Comment #2 from M
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81330
--- Comment #1 from joseph at codesourcery dot com ---
On Wed, 5 Jul 2017, msebor at gcc dot gnu.org wrote:
> GCC eliminates redundant calls to strlen() with intervening calls to strcpy
> but
> it misses an opportunity to do the same when the i