summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-21 15:00:09 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-21 15:00:09 +0000
commitf68c5086eb4bc68ba0af6b8a8d24e10f6106db8d (patch)
tree8a36f01132fd18b80b1410836228460db9204532
parente4b75be321d2ce5231f3f133555dacc29cc2c1ca (diff)
downloadgcc-f68c5086eb4bc68ba0af6b8a8d24e10f6106db8d.tar.gz
delete_related_insns returns an rtx_insn
2014-08-21 David Malcolm <dmalcolm@redhat.com> * 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". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214275 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/jump.c4
-rw-r--r--gcc/rtl.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 12ef5146eba..4f840199a81 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2014-08-21 David Malcolm <dmalcolm@redhat.com>
+ * 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".
+
+2014-08-21 David Malcolm <dmalcolm@redhat.com>
+
* genautomata.c (output_internal_insn_latency_func): When writing
the function "internal_insn_latency" to insn-automata.c,
strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
diff --git a/gcc/jump.c b/gcc/jump.c
index 96bdbe8ffbb..b195b8544bb 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1248,12 +1248,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 7d31333c6be..23446fcde03 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2459,7 +2459,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 *);