From 3f4453745ecf9ff1730567c665f4b1847bd3d33f Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Tue, 17 Jul 2018 14:27:10 +0200 Subject: [PATCH] [ARC] Don't use deprecated align_labels_log variable. 2018-07-17 Claudiu Zissulescu * config/arc/arc.c (arc_label_align): Use alogn_labels instead of deprecated align_labels_log. From-SVN: r262820 --- 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 + + * config/arc/arc.c (arc_label_align): Use align_labels instead of + deprecated align_labels_log. + 2018-07-17 Richard Biener 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.30.2