From df6a7b9d37edc1da49c5eec4963b7df3e3781d7a Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 17 Jul 2018 22:55:03 -0600 Subject: [PATCH] arm.c (get_label_padding): Update for recent changes to label_to_alignment. * config/arm/arm.c (get_label_padding): Update for recent changes to label_to_alignment. From-SVN: r262848 --- gcc/ChangeLog | 3 +++ gcc/config/arm/arm.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bccc0c7..0249082 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2018-07-17 Jeff Law + * config/arm/arm.c (get_label_padding): Update for recent + changes to label_to_alignment. + PR tree-optimization/86010 * tree-ssa-dse.c (compute_trims): Fix typo/thinko. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index ec3abbc..cf12ace 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -15938,7 +15938,7 @@ get_label_padding (rtx label) { HOST_WIDE_INT align, min_insn_size; - align = 1 << label_to_alignment (label); + align = 1 << label_to_alignment (label).levels[0].log; min_insn_size = TARGET_THUMB ? 2 : 4; return align > min_insn_size ? align - min_insn_size : 0; } -- 2.7.4