summaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 02:50:14 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-09 02:50:14 +0000
commit3c05b49d556663f953494d2e3efc5a540862f5b5 (patch)
tree48a331cf9403c1c96cb4cfd93dffe535dee4cf18 /gcc/regrename.c
parentd0b997101750568489c355817fdc34f6013666c8 (diff)
downloadgcc-3c05b49d556663f953494d2e3efc5a540862f5b5.tar.gz
use #if for HARD_FRAME_POINTER_IS_FRAME_POINTER less
gcc/ChangeLog: 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * combine.c (can_combine_def_p): Don't check the value of HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor. (combinable_i3pat): Likewise. (mark_used_regs_combine): Likewise. * regrename.c (rename_chains): Likewise. * reload.c (find_reloads_address): Likewise. * sel-sched.c (mark_unavailable_hard_regs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225594 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index 174d3b57368..e5248a54f62 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -442,12 +442,10 @@ rename_chains (void)
continue;
if (fixed_regs[reg] || global_regs[reg]
-#if !HARD_FRAME_POINTER_IS_FRAME_POINTER
- || (frame_pointer_needed && reg == HARD_FRAME_POINTER_REGNUM)
-#else
- || (frame_pointer_needed && reg == FRAME_POINTER_REGNUM)
-#endif
- )
+ || (!HARD_FRAME_POINTER_IS_FRAME_POINTER && frame_pointer_needed
+ && reg == HARD_FRAME_POINTER_REGNUM)
+ || (HARD_FRAME_POINTER_REGNUM && frame_pointer_needed
+ && reg == FRAME_POINTER_REGNUM))
continue;
COPY_HARD_REG_SET (this_unavailable, unavailable);