arm.c (get_label_padding): Update for recent changes to label_to_alignment.
authorJeff Law <law@redhat.com>
Wed, 18 Jul 2018 04:55:03 +0000 (22:55 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 18 Jul 2018 04:55:03 +0000 (22:55 -0600)
* config/arm/arm.c (get_label_padding): Update for recent
changes to label_to_alignment.

From-SVN: r262848

gcc/ChangeLog
gcc/config/arm/arm.c

index bccc0c76b04842414a206d1348a9bc7f09e59897..0249082f618228a4a07d01977f01816fa4151131 100644 (file)
@@ -1,5 +1,8 @@
 2018-07-17  Jeff Law  <law@redhat.com>
 
+       * 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.
 
index ec3abbcba9fb1ed040bc9cdcf162f5bb4f8df586..cf12aceb5fde303c9762c3d08c05a718146fe876 100644 (file)
@@ -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;
 }