http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46284
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target|win32 |i?86-*-*
Component|c++ |tree-optimization
Host|win32 |
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-02
23:54:54 UTC ---
There are multiple issues that GCC does not optimize this correctly. First of
the problem that the unions does not cause a bit field reference to happen, see
PR 28367. Then not combining the bit field references together.