[ARC] Don't use deprecated align_labels_log variable.

2018-07-17  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_label_align): Use alogn_labels instead of
	deprecated align_labels_log.

From-SVN: r262820
This commit is contained in:
Claudiu Zissulescu 2018-07-17 14:27:10 +02:00 committed by Claudiu Zissulescu
parent 3447025f2f
commit 3f4453745e
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

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