From 2059d0e97dc98988ec5edd04cb80ed25ff1c2119 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Mon, 21 Nov 2016 06:16:13 +0000 Subject: [PATCH] make add_int_reg_note take rtx_insn * gcc/ChangeLog: 2016-11-21 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *. From-SVN: r242656 --- gcc/ChangeLog | 5 +++++ gcc/rtl.h | 2 +- gcc/rtlanal.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fb54d763225..7be34625574 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-21 Trevor Saunders + + * rtl.h: Adjust prototype. + * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *. + 2016-11-21 Trevor Saunders * function.c (contains): Change argument type to rtx_insn *. diff --git a/gcc/rtl.h b/gcc/rtl.h index 52e5d180fb6..1b7ebb476d6 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3017,7 +3017,7 @@ extern int find_reg_fusage (const_rtx, enum rtx_code, const_rtx); extern int find_regno_fusage (const_rtx, enum rtx_code, unsigned int); extern rtx alloc_reg_note (enum reg_note, rtx, rtx); extern void add_reg_note (rtx, enum reg_note, rtx); -extern void add_int_reg_note (rtx, enum reg_note, int); +extern void add_int_reg_note (rtx_insn *, enum reg_note, int); extern void add_shallow_copy_of_reg_note (rtx_insn *, rtx); extern rtx duplicate_reg_note (rtx); extern void remove_note (rtx_insn *, const_rtx); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 403769efef1..7467c4e2412 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2288,7 +2288,7 @@ add_reg_note (rtx insn, enum reg_note kind, rtx datum) /* Add an integer register note with kind KIND and datum DATUM to INSN. */ void -add_int_reg_note (rtx insn, enum reg_note kind, int datum) +add_int_reg_note (rtx_insn *insn, enum reg_note kind, int datum) { gcc_checking_assert (int_reg_note_p (kind)); REG_NOTES (insn) = gen_rtx_INT_LIST ((machine_mode) kind, -- 2.30.2