https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95126
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |missed-optimization Ever confirmed|0 |1 Last reconfirmed| |2020-05-14 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Only RTL expansion sees the aggregate copy involved with the function call and this, when folded from a constant initializer, is not subject to clever things such as merging of stores.