https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87502
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=93558, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=91019 --- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #10) > __builtin_memcpy (&D.35539.D.25336._M_local_buf, "abc", 3); > MEM[(char_type &)&D.35539 + 11] = 0; > change to > __builtin_memcpy (&D.35539.D.25336._M_local_buf, "abc", 4); > seems like something that the strlen pass could do. That is very similar to PR 92245 and PR 93558 and PR 91019.