[COMMITTED,ARC] Don't use deprecated align_labels_log variable.

Message ID 20180717123028.4474-1-claziss@gmail.com
State New
Headers show
Series
  • [COMMITTED,ARC] Don't use deprecated align_labels_log variable.
Related show

Commit Message

Claudiu Zissulescu July 17, 2018, 12:30 p.m.
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(-)

-- 
2.17.1

Patch

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.  */