diff mbox

[046/236] delete_related_insns returns an rtx_insn

Message ID 1407345815-14551-47-git-send-email-dmalcolm@redhat.com
State New
Headers show

Commit Message

David Malcolm Aug. 6, 2014, 5:20 p.m. UTC
gcc/
	* rtl.h (delete_related_insns): Strengthen return type from rtx to
	rtx_insn *.

	* jump.c (delete_related_insns): Likewise, also for locals "next"
	and "prev".
---
 gcc/jump.c | 4 ++--
 gcc/rtl.h  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Jeff Law Aug. 13, 2014, 6:10 p.m. UTC | #1
On 08/06/14 11:20, David Malcolm wrote:
> gcc/
> 	* rtl.h (delete_related_insns): Strengthen return type from rtx to
> 	rtx_insn *.
>
> 	* jump.c (delete_related_insns): Likewise, also for locals "next"
> 	and "prev".
OK.
Jeff
David Malcolm Aug. 21, 2014, 2:57 p.m. UTC | #2
On Wed, 2014-08-13 at 12:10 -0600, Jeff Law wrote:
> On 08/06/14 11:20, David Malcolm wrote:
> > gcc/
> > 	* rtl.h (delete_related_insns): Strengthen return type from rtx to
> > 	rtx_insn *.
> >
> > 	* jump.c (delete_related_insns): Likewise, also for locals "next"
> > 	and "prev".
> OK.
Thanks; committed to trunk as r214275.
diff mbox

Patch

diff --git a/gcc/jump.c b/gcc/jump.c
index 1a150ac..b51ca17 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1238,12 +1238,12 @@  mark_jump_label_asm (rtx asmop, rtx insn)
    Usage of this instruction is deprecated.  Use delete_insn instead and
    subsequent cfg_cleanup pass to delete unreachable code if needed.  */
 
-rtx
+rtx_insn *
 delete_related_insns (rtx insn)
 {
   int was_code_label = (LABEL_P (insn));
   rtx note;
-  rtx next = NEXT_INSN (insn), prev = PREV_INSN (insn);
+  rtx_insn *next = NEXT_INSN (insn), *prev = PREV_INSN (insn);
 
   while (next && INSN_DELETED_P (next))
     next = NEXT_INSN (next);
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 0ad200e..9c097b6 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2436,7 +2436,7 @@  extern enum rtx_code signed_condition (enum rtx_code);
 extern void mark_jump_label (rtx, rtx, int);
 
 /* In jump.c */
-extern rtx delete_related_insns (rtx);
+extern rtx_insn *delete_related_insns (rtx);
 
 /* In recog.c  */
 extern rtx *find_constant_term_loc (rtx *);