This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][COMMITTED][ARC] Don't use deprecated align_labels_log variable.
- From: Claudiu Zissulescu <claziss at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fbedard at synopsys dot com, andrew dot burgess at embecosm dot com, claziss <claziss at gmail dot com>
- Date: Tue, 17 Jul 2018 15:30:28 +0300
- Subject: [PATCH][COMMITTED][ARC] Don't use deprecated align_labels_log variable.
From: claziss <claziss@gmail.com>
Use new align_lables struct instead of the deprecated align_labels_log variable. Committed as obvious.
2018-07-17 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_label_align): Use align_labels instead of
deprecated align_labels_log.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262820 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/ChangeLog | 5 +++++
gcc/config/arc/arc.c | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b87c00a2d49..27f8a722fa5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-17 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * config/arc/arc.c (arc_label_align): Use align_labels instead of
+ deprecated align_labels_log.
+
2018-07-17 Richard Biener <rguenther@suse.de>
PR lto/86456
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 8bb7d74c2c9..4cbf7ab2b33 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -9762,18 +9762,19 @@ arc_scheduling_not_expected (void)
return cfun->machine->arc_reorg_started;
}
+/* Code has a minimum p2 alignment of 1, which we must restore after
+ an ADDR_DIFF_VEC. */
+
int
arc_label_align (rtx_insn *label)
{
- /* Code has a minimum p2 alignment of 1, which we must restore after an
- ADDR_DIFF_VEC. */
- if (align_labels_log < 1)
+ if (align_labels.levels[0].log < 1)
{
rtx_insn *next = next_nonnote_nondebug_insn (label);
if (INSN_P (next) && recog_memoized (next) >= 0)
return 1;
}
- return align_labels_log;
+ return align_labels.levels[0].log;
}
/* Return true if LABEL is in executable code. */
--
2.17.1