This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 01/25] use rtx_insn * as the type of a local variable in mode-switching.c
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 9 May 2015 00:08:00 -0400
- Subject: [PATCH 01/25] use rtx_insn * as the type of a local variable in mode-switching.c
- 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>
* mode-switching.c (commit_mode_sets): Change type of local
variable from rtx to rtx_insn *.
---
gcc/ChangeLog | 5 +++++
gcc/mode-switching.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 77d9352..54297f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * mode-switching.c (commit_mode_sets): Change type of local
+ variable from rtx to rtx_insn *.
+
2015-05-08 Jim Wilson <jim.wilson@linaro.org>
* doc/install.texi (--enable-languages): Add missing jit and lto info.
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c
index c0f865c..dd28a3e 100644
--- a/gcc/mode-switching.c
+++ b/gcc/mode-switching.c
@@ -131,7 +131,7 @@ commit_mode_sets (struct edge_list *edge_list, int e, struct bb_info *info)
HARD_REG_SET live_at_edge;
basic_block src_bb = eg->src;
int cur_mode = info[src_bb->index].mode_out;
- rtx mode_set;
+ rtx_insn *mode_set;
REG_SET_TO_HARD_REG_SET (live_at_edge, df_get_live_out (src_bb));
@@ -145,7 +145,7 @@ commit_mode_sets (struct edge_list *edge_list, int e, struct bb_info *info)
default_rtl_profile ();
/* Do not bother to insert empty sequence. */
- if (mode_set == NULL_RTX)
+ if (mode_set == NULL)
continue;
/* We should not get an abnormal edge here. */
--
2.4.0.78.g7c6ecbf