aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-04-09 16:53:18 +0000
committerDoug Evans <dje@gnu.org>1996-04-09 16:53:18 +0000
commit6e9e65c67ae29c8e3985458344097fccc6952711 (patch)
tree2c63a35afd83fc6b865e4992b636b89cb1334f1e
parentd61ba4f4e11cd411e2943e129d766f229f72b909 (diff)
downloadgcc-6e9e65c67ae29c8e3985458344097fccc6952711.zip
gcc-6e9e65c67ae29c8e3985458344097fccc6952711.tar.gz
gcc-6e9e65c67ae29c8e3985458344097fccc6952711.tar.bz2
(ASM_OUTPUT_ALIGN): Define and use .balign.
From-SVN: r11687
-rw-r--r--gcc/config/i386/gas.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h
index d020157..4d9a38f 100644
--- a/gcc/config/i386/gas.h
+++ b/gcc/config/i386/gas.h
@@ -1,5 +1,5 @@
-/* Definitions for Intel 386 running system V with gnu tools
- Copyright (C) 1988, 1993, 1994 Free Software Foundation, Inc.
+/* Definitions for Intel 386 using GAS.
+ Copyright (C) 1988, 1993, 1994, 1996 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -71,13 +71,18 @@ Boston, MA 02111-1307, USA. */
#define TARGET_MEM_FUNCTIONS
-#if 0 /* People say gas uses the log as the arg to .align. */
-/* When using gas, .align N aligns to an N-byte boundary. */
+/* In the past there was confusion as to what the argument to .align was
+ in GAS. For the last several years the rule has been this: for a.out
+ file formats that argument is LOG, and for all other file formats the
+ argument is 1<<LOG.
+
+ However, GAS now has .p2align and .balign pseudo-ops so to remove any
+ doubt or guess work, and since this file is used for both a.out and other
+ file formats, we use one of them. */
#undef ASM_OUTPUT_ALIGN
-#define ASM_OUTPUT_ALIGN(FILE,LOG) \
- if ((LOG)!=0) fprintf ((FILE), "\t.align %d\n", 1<<(LOG))
-#endif
+#define ASM_OUTPUT_ALIGN(FILE,LOG) \
+ if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
/* Align labels, etc. at 4-byte boundaries.
For the 486, align to 16-byte boundary for sake of cache. */