public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: tbsaunde+gcc@tbsaunde.org
To: gcc-patches@gcc.gnu.org
Subject: [PATCH 05/11] make replace_label_in_insn take labels as rtx_insn *
Date: Mon, 14 Nov 2016 08:01:00 -0000	[thread overview]
Message-ID: <20161114080934.19056-6-tbsaunde+gcc@tbsaunde.org> (raw)
In-Reply-To: <20161114080934.19056-1-tbsaunde+gcc@tbsaunde.org>

From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

gcc/ChangeLog:

2016-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* rtl.h: Adjust prototype.
	* rtlanal.c (replace_label_in_insn): Change argument type to
	rtx_insn *.
---
 gcc/rtl.h     | 2 +-
 gcc/rtlanal.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/rtl.h b/gcc/rtl.h
index dc308f2..c6c30b5 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3039,7 +3039,7 @@ extern void copy_reg_eh_region_note_backward (rtx, rtx_insn *, rtx);
 extern int inequality_comparisons_p (const_rtx);
 extern rtx replace_rtx (rtx, rtx, rtx, bool = false);
 extern void replace_label (rtx *, rtx, rtx, bool);
-extern void replace_label_in_insn (rtx_insn *, rtx, rtx, bool);
+extern void replace_label_in_insn (rtx_insn *, rtx_insn *, rtx_insn *, bool);
 extern bool rtx_referenced_p (const_rtx, const_rtx);
 extern bool tablejump_p (const rtx_insn *, rtx_insn **, rtx_jump_table_data **);
 extern int computed_jump_p (const rtx_insn *);
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 7a89c03..504b265 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3079,8 +3079,8 @@ replace_label (rtx *loc, rtx old_label, rtx new_label, bool update_label_nuses)
 }
 
 void
-replace_label_in_insn (rtx_insn *insn, rtx old_label, rtx new_label,
-		       bool update_label_nuses)
+replace_label_in_insn (rtx_insn *insn, rtx_insn *old_label,
+		       rtx_insn *new_label, bool update_label_nuses)
 {
   rtx insn_as_rtx = insn;
   replace_label (&insn_as_rtx, old_label, new_label, update_label_nuses);
-- 
2.9.3.dirty

  parent reply	other threads:[~2016-11-14  8:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-14  8:01 [PATCH 00/11] more rtx_insn * stuff tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 02/11] split up variables to use rtx_insn * more tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 11/11] make find_reg{,no}_fusage take rtx_insn * tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 08/11] make prologue_epilogue_contains take a " tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 04/11] make recog () " tbsaunde+gcc
2016-11-14 20:24   ` Richard Sandiford
2016-11-14  8:01 ` [PATCH 01/11] use rtx_insn * more places where it is obvious tbsaunde+gcc
2016-11-22 10:10   ` Andreas Schwab
2016-11-23 20:17     ` Jeff Law
2016-11-14  8:01 ` [PATCH 09/11] make add_int_reg_note take rtx_insn * tbsaunde+gcc
2016-11-14  8:01 ` tbsaunde+gcc [this message]
2016-11-14  8:01 ` [PATCH 03/11] make find_reg_equal_equiv_note " tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 07/11] remove cast from emit_libcall_block tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 10/11] make dead_or_set_{,regno_}p take rtx_insn * tbsaunde+gcc
2016-11-14  8:01 ` [PATCH 06/11] make delete_insn () take a " tbsaunde+gcc
2016-11-14 13:45 ` [PATCH 00/11] more rtx_insn * stuff Bernd Schmidt
2016-11-14 15:18   ` Trevor Saunders

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161114080934.19056-6-tbsaunde+gcc@tbsaunde.org \
    --to=tbsaunde+gcc@tbsaunde.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).