Fix bootstrap with !ASM_OUTPUT_MAX_SKIP_ALIGN
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 24 Nov 2016 22:30:54 +0000 (22:30 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 24 Nov 2016 22:30:54 +0000 (22:30 +0000)
* varasm.c (assemble_start_function): Wrap align_log definition in
ASM_OUTPUT_MAX_SKIP_ALIGN.

From-SVN: r242853

gcc/ChangeLog
gcc/varasm.c

index 4244a98fd9595118035cd604232b5dfafb72fe8c..9e4c9b3b07086d7988a0da6f6245f42b7a96d9f6 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * varasm.c (assemble_start_function): Wrap align_log definition in
+       ASM_OUTPUT_MAX_SKIP_ALIGN.
+
 2016-11-24  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (wide AND insn to QImode splitter): Use
index 54e06acd542a3bec18ef7cd488b8ec3a97a32c48..1e7c2b523c107e37a55f0542ea65cfe30aca4bf1 100644 (file)
@@ -1791,7 +1791,9 @@ assemble_start_function (tree decl, const char *fnname)
       && align_functions_log > align
       && optimize_function_for_speed_p (cfun))
     {
+#ifdef ASM_OUTPUT_MAX_SKIP_ALIGN
       int align_log = align_functions_log;
+#endif
       int max_skip = align_functions - 1;
       if (flag_limit_function_alignment && crtl->max_insn_address > 0
          && max_skip >= crtl->max_insn_address)