OSDN Git Service

PR target/15790
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2004 22:32:08 +0000 (22:32 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jun 2004 22:32:08 +0000 (22:32 +0000)
* config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.

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

gcc/ChangeLog
gcc/config/i386/i386-coff.h

index 0edcc7a..9bc153f 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-08  James E Wilson  <wilson@specifixinc.com>
+
+       PR target/15790
+       * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
+
 2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * fold-const.c (fold_convert): Treat OFFSET_TYPE like
index 85a5193..1299cea 100644 (file)
@@ -60,4 +60,11 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
   sprintf ((BUF), ".%s%ld", (PREFIX), (long)(NUMBER))
 
+/* GNU as expects alignment to be the number of bytes instead of the log for
+   COFF targets.  */
+
+#undef ASM_OUTPUT_ALIGN
+#define ASM_OUTPUT_ALIGN(FILE,LOG) \
+  if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
+
 /* end of i386-coff.h */