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". From-SVN: r214275
This commit is contained in:
parent
27d7f41e48
commit
bba2490b5f
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Reference in a new issue