Re: [RS6000] Don't restore fixed regs

2017-08-14 Thread Segher Boessenkool
Hi! Sorry the review took a while. On Fri, Aug 11, 2017 at 12:28:16PM +0930, Alan Modra wrote: > * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore > fixed regs. > diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c > index 74158cd..b628808 100644 > ---

[RS6000] Don't restore fixed regs

2017-08-10 Thread Alan Modra
As noted in fixed_reg_p comment /* Return whether REG is a global user reg or has been specifed by -ffixed-REG. We should not restore these, and so cannot use lmw or out-of-line restore functions if there are any. We also can't save them (well, emit frame notes for them), because frame