[PATCH 05/25] computed_jump_p takes a rtx_insn *

tbsaunde+gcc@tbsaunde.org tbsaunde+gcc@tbsaunde.org
Sat May 9 04:08:00 GMT 2015


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

gcc/ChangeLog:

2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
	* rtl.h: Adjust.
---
 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 94783f8..632a283 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
 
+	* rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
+	* rtl.h: Adjust.
+
+2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
 	* rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
 	* cfgrtl.c (can_delete_label_p): Adjust.
 	* rtl.h: likewise.
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 6b01dd7..2795d5a 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2890,7 +2890,7 @@ extern void replace_label (rtx *, rtx, rtx, bool);
 extern void replace_label_in_insn (rtx_insn *, rtx, rtx, bool);
 extern bool rtx_referenced_p (const_rtx, const_rtx);
 extern bool tablejump_p (const rtx_insn *, rtx *, rtx_jump_table_data **);
-extern int computed_jump_p (const_rtx);
+extern int computed_jump_p (const rtx_insn *);
 extern bool tls_referenced_p (const_rtx);
 
 /* Overload for refers_to_regno_p for checking a single register.  */
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index b531010..8c9b01d 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2990,7 +2990,7 @@ computed_jump_p_1 (const_rtx x)
    we can recognize them by a (use (label_ref)).  */
 
 int
-computed_jump_p (const_rtx insn)
+computed_jump_p (const rtx_insn *insn)
 {
   int i;
   if (JUMP_P (insn))
-- 
2.4.0.78.g7c6ecbf



More information about the Gcc-patches mailing list