aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/local-alloc.c25
2 files changed, 2 insertions, 25 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e113a71..54e39f4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
Sun Mar 29 12:45:23 1998 Jeffrey A Law (law@cygnus.com)
+ * local-alloc.c (reg_classes_overlap_p): Delete dead function.
+
* tree.h (lang_print_xnode): Provide prototype.
Sat Mar 28 23:50:44 PST 1998 Jeff Law (law@cygnus.com)
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index cff332f..a465bb7 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -257,8 +257,6 @@ static int qty_compare PROTO((int, int));
static int qty_compare_1 PROTO((const GENERIC_PTR, const GENERIC_PTR));
static int combine_regs PROTO((rtx, rtx, int, int, rtx, int));
static int reg_meets_class_p PROTO((int, enum reg_class));
-static int reg_classes_overlap_p PROTO((enum reg_class, enum reg_class,
- int));
static void update_qty_class PROTO((int, int));
static void reg_is_set PROTO((rtx, rtx));
static void reg_is_born PROTO((rtx, int));
@@ -1747,29 +1745,6 @@ reg_meets_class_p (reg, class)
|| reg_class_subset_p (class, rclass));
}
-/* Return 1 if the two specified classes have registers in common.
- If CALL_SAVED, then consider only call-saved registers. */
-
-static int
-reg_classes_overlap_p (c1, c2, call_saved)
- register enum reg_class c1;
- register enum reg_class c2;
- int call_saved;
-{
- HARD_REG_SET c;
- int i;
-
- COPY_HARD_REG_SET (c, reg_class_contents[(int) c1]);
- AND_HARD_REG_SET (c, reg_class_contents[(int) c2]);
-
- for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
- if (TEST_HARD_REG_BIT (c, i)
- && (! call_saved || ! call_used_regs[i]))
- return 1;
-
- return 0;
-}
-
/* Update the class of QTY assuming that REG is being tied to it. */
static void