This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 08/25] make add_shallow_copy_of_reg_note take an rtx_insn *
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 9 May 2015 00:08:07 -0400
- Subject: [PATCH 08/25] make add_shallow_copy_of_reg_note take an rtx_insn *
- Authentication-results: sourceware.org; auth=none
- References: <1431144504-23213-1-git-send-email-tbsaunde+gcc at tbsaunde dot org>
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
gcc/ChangeLog:
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
to rtx_insn *.
* rtl.h: Adjust.
---
gcc/ChangeLog | 6 ++++++
gcc/rtl.h | 2 +-
gcc/rtlanal.c | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c9b517fe..d519861 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+ * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
+ to rtx_insn *.
+ * rtl.h: Adjust.
+
+2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
* rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
to rtx_insn *.
* rtl.h: Likewise.
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 1e161f7..82ed3b3 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2867,7 +2867,7 @@ 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_shallow_copy_of_reg_note (rtx, rtx);
+extern void add_shallow_copy_of_reg_note (rtx_insn *, rtx);
extern void remove_note (rtx, const_rtx);
extern void remove_reg_equal_equiv_notes (rtx_insn *);
extern void remove_reg_equal_equiv_notes_for_regno (unsigned int);
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 1a69424..f1511c4 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2117,7 +2117,7 @@ add_int_reg_note (rtx insn, enum reg_note kind, int datum)
/* Add a register note like NOTE to INSN. */
void
-add_shallow_copy_of_reg_note (rtx insn, rtx note)
+add_shallow_copy_of_reg_note (rtx_insn *insn, rtx note)
{
if (GET_CODE (note) == INT_LIST)
add_int_reg_note (insn, REG_NOTE_KIND (note), XINT (note, 0));
--
2.4.0.78.g7c6ecbf