* regrename.c (rename_chains): Check
HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
* sel-sched.c (mark_unavailable_hard_regs): Likewise.
Co-Authored-By: Alexander Monakov <amonakov@ispras.ru>
From-SVN: r240496
+2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+ Alexander Monakov <amonakov@ispras.ru>
+
+ * regrename.c (rename_chains): Check
+ HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
+ HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
+ * sel-sched.c (mark_unavailable_hard_regs): Likewise.
+
2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
if (fixed_regs[reg] || global_regs[reg]
|| (!HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed
&& reg == HARD_FRAME_POINTER_REGNUM)
- || (HARD_FRAME_POINTER_REGNUM && frame_pointer_needed
+ || (HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed
&& reg == FRAME_POINTER_REGNUM))
continue;
|| global_regs[regno]
|| (!HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed
&& regno == HARD_FRAME_POINTER_REGNUM)
- || (HARD_FRAME_POINTER_REGNUM && frame_pointer_needed
+ || (HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed
&& regno == FRAME_POINTER_REGNUM)
|| (reload_completed && cl == NO_REGS))
{