summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/jump.c13
-rw-r--r--gcc/rtl.h1
3 files changed, 8 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fba5fde88c3..23d34015689 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
+ * jump.c (cleanup_barriers): Use delete_insn instead of
+ delete_barrier.
+ (delete_barrier): Remove.
+ * rtl.h: Remove the corresponding prototype.
+
+2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
+
* expr.c (mostly_zero_p): Make it static.
* tree.h: Remove the prototype for mostly_zeros_p.
diff --git a/gcc/jump.c b/gcc/jump.c
index b84841c1754..ed6ef1e5871 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -114,7 +114,7 @@ cleanup_barriers (void)
{
prev = prev_nonnote_insn (insn);
if (BARRIER_P (prev))
- delete_barrier (insn);
+ delete_insn (insn);
else if (prev != PREV_INSN (insn))
reorder_insns (insn, insn, prev);
}
@@ -1167,17 +1167,6 @@ delete_jump (rtx insn)
delete_computation (insn);
}
-/* Verify INSN is a BARRIER and delete it. */
-
-void
-delete_barrier (rtx insn)
-{
- if (!BARRIER_P (insn))
- abort ();
-
- delete_insn (insn);
-}
-
/* Recursively delete prior insns that compute the value (used only by INSN
which the caller is deleting) stored in the register mentioned by NOTE
which is a REG_DEAD note associated with INSN. */
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 67eea8b04b9..766cebebd60 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1528,7 +1528,6 @@ extern void cleanup_barriers (void);
extern bool squeeze_notes (rtx *, rtx *);
extern rtx delete_related_insns (rtx);
extern void delete_jump (rtx);
-extern void delete_barrier (rtx);
extern rtx get_label_before (rtx);
extern rtx get_label_after (rtx);
extern rtx follow_jumps (rtx);