https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 Bug 83819 depends on bug 86042, which changed state.
Bug 86042 Summary: [8/9 Regression] missing strlen optimization after second strcpy https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86042 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED