[committed] Restoring MIPS builds after alignment changes

Message ID 366cf142-883e-9f67-8739-2b255f59ae72@redhat.com
State New
Headers show
Series
  • [committed] Restoring MIPS builds after alignment changes
Related show

Commit Message

Jeff Law July 17, 2018, 8:53 p.m.
Similar to the others...

Committed to the trunk.

Jeff

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 51e91221147..ac4abdaf1ba 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@ 
 2018-07-17  Jeff Law  <law@redhat.com>
 
+	* config/mips/mips.c (vr4130_align_insns): Update for recent
+	changes to label_to_alignment.
+
 	* config/frv/frv.c (frv_label_align): Update for recent changes
 	to label_to_alignment.
 
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 75ee834137e..ea2fae1d6db 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -18539,7 +18539,7 @@  vr4130_align_insns (void)
 	}
 
       /* See whether INSN is an aligned label.  */
-      if (LABEL_P (insn) && label_to_alignment (insn) >= 3)
+      if (LABEL_P (insn) && label_to_alignment (insn).levels[0].log >= 3)
 	aligned_p = true;
     }
   dfa_finish ();