https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81012
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=87718
Resolution|--- |FIXED
Target Milestone|--- |9.0
Status|NEW |RESOLVED
Known to fail| |5.4.0, 8.2.0
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 9+ most likely by r9-4310 (aka PR 87718).
The reason why I say most likely the above revision is because if we change the
return to:
return a+1;
The spill is no longer there.