From 373fc786c2e8de2765e383487c9470bafa1d5288 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 25 Aug 2014 20:36:57 +0000 Subject: [PATCH] delete_insn_and_edges takes an rtx_insn * gcc/ * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx to rtx_insn *. * cfgrtl.c (delete_insn_and_edges): Likewise. From-SVN: r214474 --- gcc/ChangeLog | 6 ++++++ gcc/cfgrtl.c | 2 +- gcc/rtl.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66086adbf53..1a4617c631a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-25 David Malcolm + + * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx + to rtx_insn *. + * cfgrtl.c (delete_insn_and_edges): Likewise. + 2014-08-25 David Malcolm * rtl.h (reorder_insns): Strengthen params "from", "to", "after" diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 5a7c1351f74..14454fb4cc2 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -220,7 +220,7 @@ delete_insn (rtx insn) /* Like delete_insn but also purge dead edges from BB. */ void -delete_insn_and_edges (rtx insn) +delete_insn_and_edges (rtx_insn *insn) { bool purge = false; diff --git a/gcc/rtl.h b/gcc/rtl.h index 8aca73cc2cf..5db16c84747 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3100,7 +3100,7 @@ extern rtx_insn *entry_of_function (void); extern void emit_insn_at_entry (rtx); extern void delete_insn_chain (rtx, rtx, bool); extern rtx_insn *unlink_insn_chain (rtx, rtx); -extern void delete_insn_and_edges (rtx); +extern void delete_insn_and_edges (rtx_insn *); extern rtx gen_lowpart_SUBREG (enum machine_mode, rtx); extern rtx gen_const_mem (enum machine_mode, rtx); extern rtx gen_frame_mem (enum machine_mode, rtx); -- 2.30.2