aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-11-23 15:10:18 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-11-23 15:10:18 -0800
commit6f9e35784d327805a4210efd91a9028c6ad21ee4 (patch)
tree0eb629e5dc927e8a4d0db60b6b3e5ed4d5772763 /gcc/emit-rtl.c
parent4488a8b8769d54a19634d22c42bd9ec111a89be5 (diff)
downloadgcc-6f9e35784d327805a4210efd91a9028c6ad21ee4.zip
gcc-6f9e35784d327805a4210efd91a9028c6ad21ee4.tar.gz
gcc-6f9e35784d327805a4210efd91a9028c6ad21ee4.tar.bz2
emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
* emit-rtl.c, rtl.h (subreg_hard_regno): Remove. * caller-save.c (mark_set_regs): Use subreg_regno instead. * final.c (alter_subreg): Likewise. * local-alloc.c (reg_is_born): Likewise. From-SVN: r91115
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 5f2d8b2..c24ba25 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1018,34 +1018,6 @@ maybe_set_first_label_num (rtx x)
first_label_num = CODE_LABEL_NUMBER (x);
}
-/* Return the final regno of X, which is a SUBREG of a hard
- register. */
-int
-subreg_hard_regno (rtx x, int check_mode)
-{
- enum machine_mode mode = GET_MODE (x);
- unsigned int byte_offset, base_regno, final_regno;
- rtx reg = SUBREG_REG (x);
-
- /* This is where we attempt to catch illegal subregs
- created by the compiler. */
- gcc_assert (GET_CODE (x) == SUBREG && REG_P (reg));
- base_regno = REGNO (reg);
- gcc_assert (base_regno < FIRST_PSEUDO_REGISTER);
- gcc_assert (!check_mode || HARD_REGNO_MODE_OK (base_regno, GET_MODE (reg)));
-#ifdef ENABLE_CHECKING
- gcc_assert (subreg_offset_representable_p (REGNO (reg), GET_MODE (reg),
- SUBREG_BYTE (x), mode));
-#endif
- /* Catch non-congruent offsets too. */
- byte_offset = SUBREG_BYTE (x);
- gcc_assert (!(byte_offset % GET_MODE_SIZE (mode)));
-
- final_regno = subreg_regno (x);
-
- return final_regno;
-}
-
/* Return a value representing some low-order bits of X, where the number
of low-order bits is given by MODE. Note that no conversion is done
between floating-point and fixed-point values, rather, the bit