https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82434
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- B needs to be returned by invisible reference, so f actually is seen by the store merging pass as struct A { long a; bool b, c, d, e; }; void f(A *p) { p->a = 1; p->b = true; p->c = true; p->d = true; p->e = true; } which we don't merge either. Though, I don't see why we couldn't merge these either. Let me have a quick look.