https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100152
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11/12 Regression] used |[10 Regression] used
|caller-saved register not |caller-saved register not
|preserved across a call. |preserved across a call.
--- Comment #57 from Iain Sandoe <iains at gcc dot gnu.org> ---
so fixed on master (12) and for 11.2 so far.
Note the problem is present on closed branches too.