https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48877
Andy Lutomirski <luto at kernel dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Andy Lutomirski <luto at kernel dot org> ---
(In reply to Ivan Sorokin from comment #2)
> Modern GCC doesn't generate excessive moves for this example. It looks like
> the problem was fixed in 4.9.0: https://godbolt.org/z/MqE7sP .
>
> I think the bug can be closed now.
Indeed.