https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90216
--- Comment #2 from stevexiong98 at hotmail dot com --- (In reply to Andrew Pinski from comment #1) > 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). Thanks so much for the update. I am looking forward to the next compiler release!