aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2004-06-08 22:32:08 +0000
committerJim Wilson <wilson@gcc.gnu.org>2004-06-08 15:32:08 -0700
commit02760d2f0843e45c0336586a34ac01ae7a9e549f (patch)
tree7b4443a5d358c84a944e1100f5cfc46c6814f225
parent5f1a5ede6c70418894b4bfe396299583b711fe84 (diff)
downloadgcc-02760d2f0843e45c0336586a34ac01ae7a9e549f.zip
gcc-02760d2f0843e45c0336586a34ac01ae7a9e549f.tar.gz
gcc-02760d2f0843e45c0336586a34ac01ae7a9e549f.tar.bz2
re PR target/15790 ([3.4 only] Alignment error building gcc with i686-coff target)
PR target/15790 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define. From-SVN: r82796
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386-coff.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0edcc7a..9bc153f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386-coff.h b/gcc/config/i386/i386-coff.h
index 85a5193..1299cea 100644
--- a/gcc/config/i386/i386-coff.h
+++ b/gcc/config/i386/i386-coff.h
@@ -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 */