Re: [PATCH 2/4] [RS6000] PR69645, -ffixed-reg ignored

2016-03-21 Thread David Edelsohn
On Mon, Mar 21, 2016 at 9:06 AM, Alan Modra wrote: > Treat -ffixed-reg as we do for global asm regs. The only slightly > complicated part of this patch is that the rs6000 backend itself sets > fixed_regs[RS6000_PIC_OFFSET_TABLE_REGNUM] in some cases, which means > we can't simply test fixed_regs[

[PATCH 2/4] [RS6000] PR69645, -ffixed-reg ignored

2016-03-21 Thread Alan Modra
Treat -ffixed-reg as we do for global asm regs. The only slightly complicated part of this patch is that the rs6000 backend itself sets fixed_regs[RS6000_PIC_OFFSET_TABLE_REGNUM] in some cases, which means we can't simply test fixed_regs[] to determine whether a reg appeared as -ffixed-reg.

[RS6000] PR69645, -ffixed-reg

2016-03-21 Thread Alan Modra
the range includes some global/-ffixed regs. Bootstrapped and regression tested powerpc64le-linux. OK for gcc-7? Alan Modra (4): [RS6000] Simplify setting of fixed_regs[RS6000_PIC_OFFSET_TABLE_REGNUM] [RS6000] PR69645, -ffixed-reg ignored [RS6000] Split SAVRES_STRATEGY [RS6000] Allow