https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86121
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-06-13 CC| |rguenth at gcc dot gnu.org Version|8.0 |9.0 Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. The change was desired and the outcome is desired as well. The warning code needs to deal with this. We only optimize this after the strlen pass which runs pretty late and transforms the two calls to memcpy_chk calls (w/o folding them it seems so it takes until VRP/forwprop to finally fold them). There's a missed optimization opportunity in merging the two aggregate copies.