https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90216
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-04-23 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, part of the problem is union is forced to memory early on but then optimized out but the object still exist in memory even though it is dead. I am working on an optimization which improves this by the lowering of bit-fields. But it won't go in until post GCC 9 (released next year).