On Mon, 21 May 2018, Jeff Law wrote: > Whether or not a global register is saved in the prologue and restored > in the epilogue is actually a function of the target's prologue/epilogue > implementation. > > So ISTM this paragraph needs to be refined a bit. Essentially it may or > may not change the ABI. It really depends on the target implementation.
As far as I can tell, that would be a target bug; if global registers are restored in epilogues, they are not useful. Alexander