This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/4] [RS6000] PR69645, -ffixed-reg ignored
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Mar 2016 10:50:26 -0400
- Subject: Re: [PATCH 2/4] [RS6000] PR69645, -ffixed-reg ignored
- Authentication-results: sourceware.org; auth=none
- References: <20160321130459 dot GL22605 at bubble dot grove dot modra dot org> <20160321130648 dot GN22605 at bubble dot grove dot modra dot org>
On Mon, Mar 21, 2016 at 9:06 AM, Alan Modra <amodra@gmail.com> 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[] to determine whether a reg appeared
> as -ffixed-reg.
>
> PR target/69645
> * config/rs6000/rs6000.c (fixed_reg_p): New function.
> (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
> Update all uses.
Okay.
Thanks, David