From 89b6250dd60e74a7c2f0f7605ffb4131b4b43983 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 9 May 2015 04:16:38 +0000 Subject: [PATCH] emit_note_before can take a rtx_insn * gcc/ChangeLog: 2015-05-08 Trevor Saunders * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *. * rtl.h: Adjust. From-SVN: r222946 --- gcc/ChangeLog | 5 +++++ gcc/emit-rtl.c | 3 +-- gcc/rtl.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99ba0f6bbf6..b928d40e4f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-05-08 Trevor Saunders + + * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *. + * rtl.h: Adjust. + 2015-05-08 Trevor Saunders * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 2521c779e71..6e70c582996 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4647,9 +4647,8 @@ emit_note_after (enum insn_note subtype, rtx_insn *after) /* Emit a note of subtype SUBTYPE before the insn BEFORE. */ rtx_note * -emit_note_before (enum insn_note subtype, rtx uncast_before) +emit_note_before (enum insn_note subtype, rtx_insn *before) { - rtx_insn *before = as_a (uncast_before); rtx_note *note = make_note_raw (subtype); basic_block bb = BARRIER_P (before) ? NULL : BLOCK_FOR_INSN (before); bool on_bb_boundary_p = (bb != NULL && BB_HEAD (bb) == before); diff --git a/gcc/rtl.h b/gcc/rtl.h index a39cdc5ca15..ee3eccae518 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2671,7 +2671,7 @@ extern rtx_insn *emit_debug_insn_before_noloc (rtx, rtx); extern rtx_insn *emit_debug_insn_before_setloc (rtx, rtx, int); extern rtx_barrier *emit_barrier_before (rtx); extern rtx_insn *emit_label_before (rtx, rtx_insn *); -extern rtx_note *emit_note_before (enum insn_note, rtx); +extern rtx_note *emit_note_before (enum insn_note, rtx_insn *); extern rtx_insn *emit_insn_after (rtx, rtx); extern rtx_insn *emit_insn_after_noloc (rtx, rtx, basic_block); extern rtx_insn *emit_insn_after_setloc (rtx, rtx, int); -- 2.30.2