From: David Malcolm Date: Mon, 25 Aug 2014 20:36:57 +0000 (+0000) Subject: delete_insn_and_edges takes an rtx_insn * X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=373fc786c2e8de2765e383487c9470bafa1d5288;p=gcc.git 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 --- 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);