aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-05-19 07:11:18 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-05-19 07:11:18 +0000
commit72d19505eef64d2d9c37d8aabf1fffb3267d5d0e (patch)
treebeb548b65d6faefd74cb108441dc434970a741e8 /gcc/rtl.h
parent9188b2863c0a2b6c91dbd6e6e373fada6b34f225 (diff)
downloadgcc-72d19505eef64d2d9c37d8aabf1fffb3267d5d0e.zip
gcc-72d19505eef64d2d9c37d8aabf1fffb3267d5d0e.tar.gz
gcc-72d19505eef64d2d9c37d8aabf1fffb3267d5d0e.tar.bz2
regs.h (END_HARD_REGNO): Delete.
gcc/ * regs.h (END_HARD_REGNO): Delete. (END_REGNO): Move to... * rtl.h: ...here. * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO. * caller-save.c (mark_set_regs): Likewise. * combine.c (move_deaths, distribute_notes): Likewise. * cse.c (invalidate, invalidate_for_call): Likewise. * df-scan.c (df_ref_record): Likewise. * postreload-gcse.c (reg_changed_after_insn_p): Likewise. (record_last_reg_set_info): Likewise. * reg-stack.c (convert_regs_exit): Likewise. * reload.c (reg_overlap_mentioned_for_reload_p): Likewise. * resource.c (update_live_status): Likewise. * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise. From-SVN: r223343
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index e7d06c2..fb7b641 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1733,6 +1733,13 @@ rhs_regno (const_rtx x)
return REG_CHECK (x)->regno;
}
+/* Return the final register in REG X plus one. */
+static inline unsigned int
+END_REGNO (const_rtx x)
+{
+ return REGNO (x) + REG_NREGS (x);
+}
+
/* Change the REGNO and REG_NREGS of REG X to the specified values,
bypassing the df machinery. */
static inline void