https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98908

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Failure to optimize         |[11 Regression] arithmetic
                   |arithmetic involving struct |involving struct members
                   |members into operating on   |into operating on the
                   |the entire struct           |entire struct fails at -O3
   Target Milestone|9.0                         |11.3
             Status|RESOLVED                    |NEW
         Resolution|FIXED                       |---

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Gabriel Ravier from comment #9)
> PS: I had missed at the time that the bug wasn't present in GCC 10/9/8
> though, so perhaps it should be considered as having been a GCC 11
> regression that got fixed in trunk ?

Oh -O2 is correct but -O3 is not.  I just assumed -O2 because you never said
what option you used.  It is fixed again on the trunk.  So this is still a
regression in GCC 11 series.

Reply via email to