OSDN Git Service

* i386.md (align): Fix warning; clarify what to do when no p2align
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jun 2003 11:25:43 +0000 (11:25 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jun 2003 11:25:43 +0000 (11:25 +0000)
is available.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67485 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.md

index 30e69fb..c9af64a 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun  5 13:23:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * i386.md (align): Fix warning; clarify what to do when no p2align
+       is available.
+
 2003-06-05  Nick Clifton  <nickc@redhat.com>
 
        * config.gcc (m32r-elf): Revert previous delta.
index a027a76..b255df2 100644 (file)
   ""
 {
 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN
-  ASM_OUTPUT_MAX_SKIP_ALIGN (asm_out_file, 4, INTVAL (operands[0]));
+  ASM_OUTPUT_MAX_SKIP_ALIGN (asm_out_file, 4, (int)INTVAL (operands[0]));
 #else
-  ASM_OUTPUT_ALIGN (asm_out_file, 4);
+  /* It is tempting to use ASM_OUTPUT_ALIGN here, but we don't want to do that.
+     The align insn is used to avoid 3 jump instructions in the row to improve
+     branch prediction and the benefits hardly outweight the cost of extra 8
+     nops on the average inserted by full alignment pseudo operation.  */
 #endif
   return "";
 }