https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114693
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |14.0 Resolution|--- |FIXED Keywords| |missed-optimization Status|UNCONFIRMED |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Actually this is fixed on the trunk. This is what we got in GCC 13 and before: g.0_1 = g; _2 = (_Bool) g.0_1; _3 = (char) _2; s.f0 = _3; But in GCC 14+ we get: g.0_1 = g; _2 = g.0_1 & 1; _3 = (char) _2; s.f0 = _3; This was fixed by r14-6420-g85c5efcffed19c .