varasm.c (unlikely_text_section): Use assemble_align instead of ASM_OUTPUT_ALIGN.
authorRichard Henderson <rth@redhat.com>
Tue, 13 Apr 2004 23:31:56 +0000 (16:31 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 13 Apr 2004 23:31:56 +0000 (16:31 -0700)
        * varasm.c (unlikely_text_section): Use assemble_align instead of
        ASM_OUTPUT_ALIGN.  Use it in the correct place with an approximately
        correct alignment argument.

From-SVN: r80669

gcc/ChangeLog
gcc/varasm.c

index dc01a689367649c49dc55dc4bf6a4c4d6d23e2dc..1d250e78e46b16e39b3c9f3651749c0d5df416d9 100644 (file)
@@ -7,6 +7,10 @@
        (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
        * doc/invoke.texi: Update to match.
 
+       * varasm.c (unlikely_text_section): Use assemble_align instead of
+       ASM_OUTPUT_ALIGN.  Use it in the correct place with an approximately
+       correct alignment argument.
+
 2004-04-13  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
index 780bba8a11a7c1c2361c244b50dc0f36fef0e8a2..c94d514e299f77d94cfdbd6883f0f44b13222dac 100644 (file)
@@ -228,7 +228,6 @@ unlikely_text_section (void)
        {
          in_section = in_unlikely_executed_text;
          fprintf (asm_out_file, "%s\n", TEXT_SECTION_ASM_OP);
-         ASM_OUTPUT_ALIGN (asm_out_file, 2);
        }
       
       if (!unlikely_section_label_printed)
@@ -236,6 +235,10 @@ unlikely_text_section (void)
          fprintf (asm_out_file, "__%s_unlikely_section:\n", 
                   current_function_name ());
          unlikely_section_label_printed = true;
+
+         /* Make sure that we have approprate alignment for instructions
+            in this section.  */
+         assemble_align (FUNCTION_BOUNDARY);
        }
     }
 }